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



wp_create_nav_menu ›

Since3.0.0
已弃用n/a
do_action( 'wp_create_nav_menu', $_menu['term_id'], $menu_data )
参数: (2)
  • (int) $term_id ID of the new menu.
    Required: Yes
  • (array) $menu_data An array of menu data.
    Required: Yes
定义在:
文档:

Fires after a navigation menu is successfully created.





源码

do_action( 'wp_create_nav_menu', $_menu['term_id'], $menu_data );