Advertisement
Guest User

Untitled

a guest
Oct 28th, 2016
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.12 KB | None | 0 0
  1. /************
  2. * Clean up *
  3. *************/
  4.  
  5. // Remove WP Emojis
  6. remove_action('wp_head', 'print_emoji_detection_script', 7);
  7. remove_action('wp_print_styles', 'print_emoji_styles');
  8.  
  9. // Remove really simple discovery link
  10. remove_action('wp_head', 'rsd_link');
  11.  
  12. // Remove wordpress version
  13. remove_action('wp_head', 'wp_generator');
  14.  
  15. // Remove rss feed links (make sure you add them in yourself if youre using feedblitz or an rss service)
  16. remove_action('wp_head', 'feed_links', 2);
  17.  
  18. // Removes all extra rss feed links
  19. remove_action('wp_head', 'feed_links_extra', 3);
  20.  
  21. // Remove link to index page
  22. remove_action('wp_head', 'index_rel_link');
  23.  
  24. // Remove wlwmanifest.xml (needed to support windows live writer)
  25. remove_action('wp_head', 'wlwmanifest_link');
  26.  
  27. // Remove random post link
  28. remove_action('wp_head', 'start_post_rel_link', 10, 0);
  29.  
  30. // Remove parent post link
  31. remove_action('wp_head', 'parent_post_rel_link', 10, 0);
  32.  
  33. // Remove the next and previous post links
  34. remove_action('wp_head', 'adjacent_posts_rel_link', 10, 0);
  35. remove_action('wp_head', 'adjacent_posts_rel_link_wp_head', 10, 0 );
  36. remove_action('wp_head', 'wp_shortlink_wp_head', 10, 0 );
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement