Skip to content

Instantly share code, notes, and snippets.

@themeblvd
Last active August 29, 2015 14:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save themeblvd/bc435c5052dd313d8c03 to your computer and use it in GitHub Desktop.
Save themeblvd/bc435c5052dd313d8c03 to your computer and use it in GitHub Desktop.
Remove theme debugging info from <head> of your website when using a theme with Theme Blvd framework 2.5+
/**
* Remove theme debug info from outputting in
* <head> of your website.
*/
function my_remove_debug() {
if ( class_exists('Theme_Blvd_Frontend_Init') ) {
$init = Theme_Blvd_Frontend_Init::get_instance();
remove_action('wp_head', array($init, 'debug'));
}
}
add_action('wp', 'my_remove_debug');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment