Skip to content

Commit

Permalink
add filter hook to remove SEO from admin bar awesomemotive#567
Browse files Browse the repository at this point in the history
  • Loading branch information
michaeltorbert committed Oct 8, 2016
1 parent e7f7851 commit 25154ed
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions aioseop_class.php
Original file line number Diff line number Diff line change
Expand Up @@ -4467,6 +4467,12 @@ function get_metabox_header( $tabs ) {
}

function admin_bar_menu() {

if( apply_filters( 'aioseo_show_in_admin_bar', true) === false ){
// API filter hook to disable showing SEO in admin bar.
return;
}

global $wp_admin_bar, $aioseop_admin_menu, $post;

$menu_slug = plugin_basename( __FILE__ );
Expand Down

0 comments on commit 25154ed

Please sign in to comment.