Removing the Help and Customiz’it admin bar buttons
-
Hi all, I am getting a fatal error: Class ‘TC_customize’ not found in /wp-content/themes/asoapbox-child/functions.php
function remove_admin_bar_buttons() {
global $current_user;
get_currentuserinfo();
if ( in_array( ‘administrator’, $current_user -> roles ) )
return;
remove_action ( ‘wp_before_admin_bar_render’, array( TC_customize::$instance , ‘tc_add_admin_bar_options_menu’ ));
remove_action ( ‘wp_before_admin_bar_render’, array( TC_admin_init::$instance , ‘tc_add_help_button’ ));
}Please help,
Marius
Viewing 11 replies - 1 through 11 (of 11 total)
Viewing 11 replies - 1 through 11 (of 11 total)
- The topic ‘Removing the Help and Customiz’it admin bar buttons’ is closed to new replies.