Yoast\WP\SEO\Bulk_Editor\User_Interface
Bulk_Editor_Integration::remove_menu_item
Removes the bulk editor's submenu item from the Yoast SEO menu while keeping the page reachable by URL.
Runs on admin_head rather than admin_menu on purpose: by then WordPress has already resolved the page's parent and capability (so the page stays accessible and keeps its seo_page_wpseo_page_bulk_edit body class, which its styles depend on), but the menu HTML has not been rendered yet, so the item is hidden. The page is opened from the Tools page instead of its own menu item.
Метод класса: Bulk_Editor_Integration{}
Хуков нет.
Возвращает
void. Ничего (null).
Использование
$Bulk_Editor_Integration = new Bulk_Editor_Integration(); $Bulk_Editor_Integration->remove_menu_item();
Код Bulk_Editor_Integration::remove_menu_item() Bulk Editor Integration::remove menu item Yoast 28.9
public function remove_menu_item() {
\remove_submenu_page( 'wpseo_dashboard', self::PAGE );
}