wp_get_nav_menu_object

Advertisement

Summery Summery

Filters the nav_menu term retrieved for wp_get_nav_menu_object().

Syntax Syntax

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

Parameters Parameters

$menu_obj

Term from nav_menu taxonomy, or false if nothing had been found.

$menu

The menu ID, slug, name, or object passed to wp_get_nav_menu_object().

Source Source

File: wp-includes/nav-menu.php

Advertisement

Changelog Changelog

Changelog
Version Description
4.3.0 Introduced.

Advertisement

Leave a Reply