apply_filters( ‘wp_get_nav_menus’, WP_Term[] $menus, array $args )

Filters the navigation menu objects being returned.

Description

See also

Parameters

$menusWP_Term[]
An array of menu objects.
$argsarray
An array of arguments used to retrieve menu objects.

Source

return apply_filters( 'wp_get_nav_menus', get_terms( $args ), $args );

Changelog

VersionDescription
3.0.0Introduced.

User Contributed Notes

You must log in before being able to contribute a note or feedback.