WordPress开发者和主题制作者的搜索引擎



wp_get_nav_menu_object ›

Since4.3.0
已弃用n/a
apply_filters( 'wp_get_nav_menu_object', $menu_obj, $menu )
参数: (2)
  • (WP_Term|false) $menu_obj Term from nav_menu taxonomy, or false if nothing had been found.
    Required: Yes
  • (int|string|WP_Term) $menu The menu ID, slug, name, or object passed to wp_get_nav_menu_object().
    Required: Yes
定义在:
文档:

Filters the nav_menu term retrieved for wp_get_nav_menu_object().





源码

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