has_nav_menu [ WordPress Function ]
has_nav_menu ( $location )
| Parameters: |
|
| Returns: |
|
| Defined at: |
|
Benzer Fonksiyonlar: is_nav_menu, wp_nav_menu, is_nav_menu_item, register_nav_menu, register_nav_menus
Whether a registered nav menu location has a menu assigned to it.
Examples [ wp-snippets.com ]
Google Arama Sonuçlarý
- Function Reference/has nav menu « WordPress Codex
Description. Returns boolean Whether a registered nav menu location has a menu assigned(true) or not(false). Usage. <?php if ( has_nav_menu( $location ) ) { ...
codex.wordpress.org - Wordpress child theme, adding secondary menu - Stack Overflow
<?php if ( function_exists('has_nav_menu') && has_nav_menu('primary-menu') ) { wp_nav_menu( array( 'sort_column' => 'menu_order', ...
stackoverflow.com - Goodbye, headaches. Hello, menus!
Jun 1, 2010 ... Update: Props to Andrew Nacin for adding the has_nav_menu() ... WordPress has a conditional tag called has_nav_menu() to check if a menu ...
justintadlock.com - has_nav_menu | A HitchHackers guide through WordPress
Feb 12, 2011 ... Source code. function has_nav_menu( $location ) { $locations = get_nav_menu_locations(); return ( ! empty( $locations[ $location ] ) ); }. 1935 ...
hitchhackerguide.com