wp_add_nav_menu_item

wp_add_nav_menu_item

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: action
See hook in action

See hook in core

Displaying hooks found in version: wordpress-6.7

do_action('wp_add_nav_menu_item') is found 1 times:

  • /wp-includes/nav-menu.php line 565
    		 * @param int   $menu_id         ID of the updated menu.
    		 * @param int   $menu_item_db_id ID of the new menu item.
    		 * @param array $args            An array of arguments used to update/add the menu item.
    		 */
    		do_action( 'wp_add_nav_menu_item', $menu_id, $menu_item_db_id, $args );
    	}
    
    	/*
    	 * Associate the menu item with the menu term.
    	 * Only set the menu term if it isn't set to avoid unnecessary wp_get_object_terms().
    	 */
    

See this hook used in plugins: