apply_filters( ‘wp_get_nav_menu_object’, WP_Term|false $menu_obj, int|string|WP_Term $menu )

In this article

Filters the nav_menu term retrieved for wp_get_nav_menu_object() .

Parameters

$menu_objWP_Term|false
Term from nav_menu taxonomy, or false if nothing had been found.
$menuint|string|WP_Term
The menu ID, slug, name, or object passed to wp_get_nav_menu_object() .
More Arguments from wp_get_nav_menu_object( … $menu )Menu ID, slug, name, or object.

Source

return apply_filters( 'wp_get_nav_menu_object', $menu_obj, $menu );

Changelog

VersionDescription
4.3.0Introduced.

User Contributed Notes

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