Filters a menu item before it is inserted via the REST API.
Parameters
$prepared_nav_item
object- An object representing a single menu item prepared for inserting or updating the database.
$request
WP_REST_Request- Request object.
Source
return apply_filters( 'rest_pre_insert_nav_menu_item', $prepared_nav_item, $request );
Changelog
Version | Description |
---|---|
5.9.0 | Introduced. |
User Contributed Notes
You must log in before being able to contribute a note or feedback.