wp_get_nav_menus

wp_get_nav_menus

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

See hook in core

Displaying hooks found in version: wordpress-6.7

apply_filters('wp_get_nav_menus') is found 1 times:

  • /wp-includes/nav-menu.php line 665
    	 *
    	 * @param WP_Term[] $menus An array of menu objects.
    	 * @param array     $args  An array of arguments used to retrieve menu objects.
    	 */
    	return apply_filters( 'wp_get_nav_menus', get_terms( $args ), $args );
    }
    
    /**
     * Determines whether a menu item is valid.
     *
     * @link https://core.trac.wordpress.org/ticket/13958