You appear to be a bot. Output may be restricted
Description
Query if the primary menu exists
Usage
$bool = OIK_Plugin_Update::query_menu( $menu_slug );
Parameters
- $menu_slug
- ( string ) required – e.g. "oik_menu"
Returns
bool true if the menu item existsSource
File name: oik/libs/class-oik-plugin-update.phpLines:
1 to 8 of 8
function query_menu( $menu_slug ) { global $submenu; $menu_exists = false; if ( is_array( $submenu ) ) { $menu_exists = array_key_exists( $menu_slug, $submenu ); } return $menu_exists; }View on GitHub View on Trac