wphooks.info - wp_get_nav_menu_object

wp_get_nav_menu_object

(trunk - 5.1-alpha-44286)

The hook occurs in the following file:

wp-includes/nav-menu.php:
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
	}

	/**
	 * Filters the nav_menu term retrieved for wp_get_nav_menu_object().
	 *
	 * @since 4.3.0
	 *
	 * @param WP_Term|false      $menu_obj Term from nav_menu taxonomy, or false if nothing had been found.
	 * @param int|string|WP_Term $menu     The menu ID, slug, name, or object passed to wp_get_nav_menu_object().
	 */
	return apply_filters( 'wp_get_nav_menu_object', $menu_obj, $menu );
}

/**
 * Check if the given ID is a navigation menu.
 *
 * Returns true if it is; false otherwise.
 *
 * @since 3.0.0
 *