Skip to content

Instantly share code, notes, and snippets.

@themeblvd

themeblvd/functions.php

Last active Aug 29, 2015
Embed
What would you like to do?
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