Nombre del gancho
admin_menu
Versión requerida
1.0
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
add_action( 'admin_menu', 'seopress_remove_menu_page', 999); | |
function seopress_remove_menu_page() { | |
remove_menu_page( 'seopress-option' ); //SEO | |
} | |
add_action( 'admin_menu', 'seopress_remove_submenu_page', 999 ); | |
function seopress_remove_submenu_page() { | |
remove_submenu_page('seopress-option','seopress-titles'); //Titles & metas | |
remove_submenu_page('seopress-option','seopress-xml-sitemap'); //XML / HTML Sitemap | |
remove_submenu_page('seopress-option','seopress-social'); //Social Networks | |
remove_submenu_page('seopress-option','seopress-google-analytics'); //Google Analytics | |
remove_submenu_page('seopress-option','seopress-instant-indexing'); //Instant Indexing | |
remove_submenu_page('seopress-option','seopress-advanced'); //Advanced | |
remove_submenu_page('seopress-option','seopress-import-export'); //Tools | |
remove_submenu_page('seopress-option','seopress-bot-batch'); //BOT | |
remove_submenu_page('seopress-option','seopress-license'); //License | |
remove_submenu_page('seopress-option','seopress-pro-page'); //PRO | |
remove_submenu_page('seopress-option','edit.php?post_type=seopress_404'); //Redirections | |
remove_submenu_page('seopress-option','edit.php?post_type=seopress_bot'); //Broken links | |
remove_submenu_page('seopress-option','edit.php?post_type=seopress_backlinks'); //Backlinks | |
remove_submenu_page('seopress-option','edit.php?post_type=seopress_schemas'); //Schemas | |
} |