has_nav_menu

has_nav_menu

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: filter

See hook in core

Displaying hooks found in version: wordpress-6.7

apply_filters('has_nav_menu') is found 1 times:

  • /wp-includes/nav-menu.php line 195
    	 *
    	 * @param bool   $has_nav_menu Whether there is a menu assigned to a location.
    	 * @param string $location     Menu location.
    	 */
    	return apply_filters( 'has_nav_menu', $has_nav_menu, $location );
    }
    
    /**
     * Returns the name of a navigation menu.
     *
     * @since 4.9.0