/ Published in: PHP
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
/** * Clean up the <head> * http://digwp.com/2010/03/wordpress-functions-php-template-custom-functions/ * **/ function myfunction_remove_head_links() { remove_action('wp_head', 'wlwmanifest_link'); remove_action('wp_head', 'wp_generator'); remove_action('wp_head', 'rsd_link'); remove_action('wp_head', 'index_rel_link'); remove_action('wp_head', 'feed_links_extra', 3); remove_action('wp_head', 'start_post_rel_link', 10, 0); remove_action('wp_head', 'parent_post_rel_link', 10, 0); remove_action('wp_head', 'adjacent_posts_rel_link', 10, 0); } add_action('init', 'myfunction_remove_head_links');
URL: http://digwp.com/2010/03/wordpress-functions-php-template-custom-functions/