Does anyone know how to remove the information that Bad Behavior places in wp_head? You can view the information when viewing source.
<!-- Bad Behavior 2.2.1 run time: 28.117 ms -->
I want to remove it completely using something in functions.php, so I won't have to worry about it if the plugin is updated.
I tried this in my functions.php and it didn't work:
// Disable Bad Behavior showing in head source
remove_action( 'wp_head', 'bb2_insert_head', 1);
Here is the code from bad-behavior-wordpress.php
// Cute timer display; screener
function bb2_insert_head() {
global $bb2_timer_total;
global $bb2_javascript;
echo "\n<!-- Bad Behavior " . BB2_VERSION . " run time: " . number_format(1000 * $bb2_timer_total, 3) . " ms -->\n";
echo $bb2_javascript;
}
and
add_action('wp_head', 'bb2_insert_head');
Thanks for any suggestions.