Posted By

ebiansyah1402 on 11/06/10


Tagged

functionsphp


Versions (?)

WP remove unused thinks from wp_head


 / Published in: PHP
 

  1. // remove unused thinks from wp_head
  2. remove_action('wp_head', 'rsd_link');
  3. remove_action('wp_head', 'wp_generator');
  4. remove_action('wp_head', 'feed_links', 2);
  5. remove_action('wp_head', 'index_rel_link');
  6. remove_action('wp_head', 'wlwmanifest_link');
  7. remove_action('wp_head', 'feed_links_extra', 3);
  8. remove_action('wp_head', 'start_post_rel_link', 10, 0);
  9. remove_action('wp_head', 'parent_post_rel_link', 10, 0);
  10. remove_action('wp_head', 'adjacent_posts_rel_link', 10, 0);
  11.  
  12. //remove recent comment inline style
  13. function remove_recent_comments_style() {
  14. global $wp_widget_factory;
  15. remove_action( 'wp_head', array( $wp_widget_factory->widgets['WP_Widget_Recent_Comments'], 'recent_comments_style' ) );
  16. }
  17. add_action('widgets_init', 'remove_recent_comments_style' );

Report this snippet  

You need to login to post a comment.