WordPress tricks – remove generator text, RSD and WLW manifest

To remove generator text, RSD and WLW manifest from the header of a wordpress site add the following to your theme function.php file:

// Remove head generator text, RSD and WLW manifest
remove_action ('wp_head', 'wp_generator');
remove_action ('wp_head', 'rsd_link');
remove_action ('wp_head', 'wlwmanifest_link');
remove_action ('wp_head', 'wp_shortlink_wp_head');

// Remove PREV and NEXT links
remove_action( 'wp_head', 'adjacent_posts_rel_link_wp_head', 10, 0 );