transmitstudio
8/24/2016 - 7:37 PM

Remove annoying Yoast item from Admin Bar. Add to functions.php.

Remove annoying Yoast item from Admin Bar. Add to functions.php.

// remove sofaking annoying Yoast item from Admin bar
add_action( 'wp_before_admin_bar_render', 'xmit_admin_bar_render' );
function xmit_admin_bar_render() {
	global $wp_admin_bar;
	$wp_admin_bar->remove_menu('wpseo-menu');
}