You appear to be a bot. Output may be restricted
Description
Query if the primary menu exists
Usage
$bool = OIK_Theme_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/libs/class-oik-theme-update.phpLines:
1 to 8 of 8
function query_menu( $menu_slug ) { global $submenu; $found_slug = false; if ( is_array( $submenu ) ) { $found_slug = array_key_exists( $menu_slug, $submenu ); } return $found_slug; }View on GitHub