Created
July 20, 2014 06:13
-
-
Save codegirl-007/55c2e3e2ef56c73017e5 to your computer and use it in GitHub Desktop.
Remove crap from Wordpress WP_Head
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// clean up wp_head | |
wp_deregister_style( 'open-sans' ); | |
remove_action ('wp_head', 'rsd_link'); | |
remove_action( 'wp_head', 'wlwmanifest_link'); | |
remove_action( 'wp_head', 'wp_shortlink_wp_head'); | |
remove_action('wp_head', 'wp_generator'); | |
function keep_open_sans_in_admin() { | |
wp_register_style( 'open-sans', false ); | |
} | |
add_action( 'admin_enqueue_scripts', 'keep_open_sans_in_admin' ); | |
add_filter('show_admin_bar', '__return_false'); | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment