apply_filters( ‘rest_pre_insert_nav_menu_item’, object $prepared_nav_item, WP_REST_Request $request )

In this article

Filters a menu item before it is inserted via the REST API.

Parameters

$prepared_nav_itemobject
An object representing a single menu item prepared for inserting or updating the database.
$requestWP_REST_Request
Request object.

Source

return apply_filters( 'rest_pre_insert_nav_menu_item', $prepared_nav_item, $request );

Changelog

VersionDescription
5.9.0Introduced.

User Contributed Notes

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