Uma área de pesquisa sobre o WordPress para devs e autores do tema



wp_add_nav_menu_item ›

Desde4.4.0
Obsoleton/a
do_action( 'wp_add_nav_menu_item', $menu_id, $menu_item_db_id, $args )
Parâmetros: (3)
  • (int) $menu_id ID of the updated menu.
    Required: Yes
  • (int) $menu_item_db_id ID of the new menu item.
    Required: Yes
  • (array) $args An array of arguments used to update/add the menu item.
    Required: Yes
Ver:
  • wp_update_nav_menu_item()
Definido em:
Codex:

Fires immediately after a new navigation menu item has been added.





Fonte

do_action( 'wp_add_nav_menu_item', $menu_id, $menu_item_db_id, $args );