wp_get_nav_menu_object

wp_get_nav_menu_object

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

See hook in core

Displaying hooks found in version: wordpress-6.7

apply_filters('wp_get_nav_menu_object') is found 1 times:

  • /wp-includes/nav-menu.php line 49
    	 *
    	 * @param WP_Term|false      $menu_obj Term from nav_menu taxonomy, or false if nothing had been found.
    	 * @param int|string|WP_Term $menu     The menu ID, slug, name, or object passed to wp_get_nav_menu_object().
    	 */
    	return apply_filters( 'wp_get_nav_menu_object', $menu_obj, $menu );
    }
    
    /**
     * Determines whether the given ID is a navigation menu.
     *
     * Returns true if it is; false otherwise.