wphooks.info - wp_get_nav_menus

wp_get_nav_menus

(trunk - 5.1-alpha-44286)

The hook occurs in the following file:

wp-includes/nav-menu.php:
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
	/**
	 * Filters the navigation menu objects being returned.
	 *
	 * @since 3.0.0
	 *
	 * @see get_terms()
	 *
	 * @param array $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( 'nav_menu', $args ), $args );
}

/**
 * Return if a menu item is valid.
 *
 * @link https://core.trac.wordpress.org/ticket/13958
 *
 * @since 3.2.0
 * @access private