-
Notifications
You must be signed in to change notification settings - Fork 0
/
remove_html_extras.php
executable file
·31 lines (26 loc) · 1.83 KB
/
remove_html_extras.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
<?php
// ┌──────────────────────────────────────┐
// │ │░
// │ Dequeue & Deregister XMLRPC │░
// │ │░
// └──────────────────────────────────────┘░
// ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░
remove_action ('wp_head', 'rsd_link');
// ┌──────────────────────────────────────┐
// │ │░
// │ Remove Wordpress Version │░
// │ │░
// └──────────────────────────────────────┘░
// ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░
function ldnpk_remove_version() {
return '';
}
add_filter('the_generator', 'ldnpk_remove_version');
// ┌──────────────────────────────────────┐
// │ │░
// │ Remove Wordpress Emoji shit │░
// │ │░
// └──────────────────────────────────────┘░
// ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░
remove_action('wp_head', 'print_emoji_detection_script', 7);
remove_action('wp_print_styles', 'print_emoji_styles');