• Resolved bigskillet

    (@bigskillet)


    Can you tell me how I can hide the SEO admin menu? I’ve tried:

    remove_menu_page(‘theseoframework-settings’);
    remove_menu_page(‘theseoframework’);
    remove_menu_page(‘autodescription’);

    What’s the correct term?

    Thanks!

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Sybre Waaijer

    (@cybr)

    Hi @bigskillet,

    I believe this is what you’re looking for:

    add_action( 'admin_menu', 'my_remove_seo_from_wp_menu', 999 );
    function my_remove_seo_from_wp_menu() {
    
    	if ( function_exists( 'the_seo_framework' ) ) {
    		$tsf = the_seo_framework();
    		if ( $tsf ) {
    			remove_menu_page( $tsf->seo_settings_page_slug );
    		}
    	}
    }
    

    Cheers 🙂

    Thread Starter bigskillet

    (@bigskillet)

    Perfect, thank you!

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Hide SEO Admin Menu’ is closed to new replies.