WordPress does adds a lot of stuff via wp_head() hook while some of this is useful in nature while others not. For cleaning up the wp_head() easily, simply add the following snippet and you are done while the plus point is that you need not require any plugin for the same.
1 2 3 4 5 6 7 | remove_action( 'wp_head', 'rsd_link' ); remove_action( 'wp_head', 'wlwmanifest_link' ); remove_action( 'wp_head', 'wp_generator' ); remove_action( 'wp_head', 'start_post_rel_link' ); remove_action( 'wp_head', 'index_rel_link' ); remove_action( 'wp_head', 'adjacent_posts_rel_link' ); remove_action( 'wp_head', 'wp_shortlink_wp_head' ); |
Snippet Source/Credit: Noumaan Yaqoob