wpseek.com
A WordPress-centric search engine for devs and theme authors



rest_pre_insert_nav_menu_item › WordPress Filter Hooks

Since5.9.0
Deprecatedn/a
apply_filters( 'rest_pre_insert_nav_menu_item', $prepared_nav_item, $request )
Parameters: (2)
  • (object) $prepared_nav_item An object representing a single menu item prepared for inserting or updating the database.
    Required: Yes
  • (WP_REST_Request) $request Request object.
    Required: Yes
Defined at:
Codex:

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





Source

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