forked from vincentorback/clean-wordpress-admin
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathhead.php
More file actions
22 lines (17 loc) · 687 Bytes
/
head.php
File metadata and controls
22 lines (17 loc) · 687 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
<?php
/**
* Remove feeds and wordpress-specific content that is generated on the wp_head hook.
* @link https://codex.wordpress.org/Plugin_API/Action_Reference/wp_head
*/
add_action( 'init', function () {
// Remove the Really Simple Discovery service link
remove_action( 'wp_head', 'rsd_link' );
// Remove the link to the Windows Live Writer manifest
remove_action( 'wp_head', 'wlwmanifest_link' );
// Remove the general feeds
remove_action( 'wp_head', 'feed_links', 2 );
// Remove the extra feeds, such as category feeds
remove_action( 'wp_head','feed_links_extra', 3 );
// Remove the displayed XHTML generator
remove_action( 'wp_head', 'wp_generator' );
});