Skip to content

Instantly share code, notes, and snippets.

View coinso's full-sized avatar
💻
Code Crazy

Compass Internet Solutions coinso

💻
Code Crazy
View GitHub Profile
@coinso
coinso / wp_remove_header_junk.php
Last active February 21, 2017 08:29 — forked from barbareshet/wp_remove_header_junk.php
Remove All Unwanted Meta, Scripts and Styles (including Emoji) from the WordPress Header.
// =========================================================================
// REMOVE JUNK FROM WORDPRESS HEAD
// =========================================================================
remove_action('wp_head', 'rsd_link'); // remove really simple discovery link
remove_action('wp_head', 'wp_generator'); // remove wordpress version meta tag
remove_action('wp_head', 'feed_links', 2); // remove rss feed links (make sure you add them in yourself if youre using feedblitz or an rss service)
remove_action('wp_head', 'feed_links_extra', 3); // removes all extra rss feed links
remove_action('wp_head', 'index_rel_link'); // remove link to index page
remove_action('wp_head', 'wlwmanifest_link'); // remove wlwmanifest.xml (needed to support windows live writer)
remove_action('wp_head', 'start_post_rel_link', 10); // remove random post link