do_action( ‘rest_after_insert_nav_menu_item’, object $nav_menu_item, WP_REST_Request $request, bool $creating )

In this article

Fires after a single menu item is completely created or updated via the REST API.

Parameters

$nav_menu_itemobject
Inserted or updated menu item object.
$requestWP_REST_Request
Request object.
$creatingbool
True when creating a menu item, false when updating.

Source

do_action( 'rest_after_insert_nav_menu_item', $nav_menu_item, $request, true );

Changelog

VersionDescription
5.9.0Introduced.

User Contributed Notes

You must log in before being able to contribute a note or feedback.