'php_errors_status_bar',
'title' => '',
'href' => '?php-errors-toggle-set-new=' . $option,
'meta' => array(
'class' => 'php-error-toggle-container',
'html' => ''
)
);
$wp_admin_bar->add_node( $args );
}
add_action( 'admin_bar_menu', 'php_error_toggle_toolbar_entry', 999 );
function php_error_toggle_print_css() {
$php_error_toggle = php_error_toggle_get_option();
if( $php_error_toggle == 1 ) {
echo '';
echo '';
} else {
echo '';
echo '';
}
}
add_action( 'admin_bar_menu', 'php_error_toggle_print_css' );
function php_error_toggle_get_option() {
$option = get_option( 'php_error_toggle' );
return $option;
}
add_action( 'admin_head', 'php_error_toggle_print_css' );