Returns all navigation menu objects.

Signature

wp_get_nav_menus( $args = array() )
args
 (array) Array of arguments passed on to get_terms().
Default: array()

Return

(array) menu objects

Source

function wp_get_nav_menus( $args = array() ) {
	$defaults = array( 'hide_empty' => false, 'orderby' => 'none' );
	$args = wp_parse_args( $args, $defaults );

	/**
	 * Filter 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 );
}
WP Trac GitHub

Link here