You appear to be a bot. Output may be restricted
Description
Hide Calypso Search menu for Atomic sites.
For simple sites, where search dashboard doesn't exist, we use the Calypso page / menu item. For Atomic sites, the admin-menu is originated from the sites and forwarded by WPCOM `public-api`. We have search dashboard for Atomic/JP sites, so we need to hide the duplicated menu item.
Usage
Atomic_Admin_Menu::hide_search_menu_for_calypso();
Parameters
Returns
void
Source
File name: jetpack/modules/masterbar/admin-menu/class-atomic-admin-menu.php
Lines:
1 to 3 of 3
public function hide_search_menu_for_calypso() { $this->hide_submenu_page( 'jetpack', 'https://wordpress.com/jetpack-search/' . $this->domain ); }