Skip to content

Instantly share code, notes, and snippets.

@nmec
Created September 19, 2012 21:20
Show Gist options
  • Save nmec/3752340 to your computer and use it in GitHub Desktop.
Save nmec/3752340 to your computer and use it in GitHub Desktop.
<?php
// Remove SEO menu from Admin bar
add_action( 'wp_before_admin_bar_render', 'mytheme_admin_bar_render' );
function mytheme_admin_bar_render() {
global $wp_admin_bar;
$wp_admin_bar->remove_menu('wpseo-menu');
}
// Remove ‘page analysis’ and annoying SEO columns
add_filter( 'wpseo_use_page_analysis', '__return_false' );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment