Remove the admin bar in UpdraftPlus

Remove the admin bar in UpdraftPlus on child sites.

Snippet Type

Execute on Child Sites

Snippet

function updraftplus_remove_toolbar_menu() {
	
	global $wp_admin_bar;
	
	$wp_admin_bar->remove_menu('updraft_admin_node');
	
}
add_action('wp_before_admin_bar_render', 'updraftplus_remove_toolbar_menu', 999);