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



rest_pre_insert_{$this->taxonomy} › WordPress Filter Hooks

Since4.7.0
Deprecatedn/a
apply_filters( "rest_pre_insert_{$this->taxonomy}", $prepared_term, $request )
Parameters: (2)
  • (object) $prepared_term Term object.
    Required: Yes
  • (WP_REST_Request) $request Request object.
    Required: Yes
Defined at:
Codex:

Filters term data before inserting term via the REST API.

The dynamic portion of the hook name, $this->taxonomy, refers to the taxonomy slug.

Possible hook names include:

  • rest_pre_insert_category
  • rest_pre_insert_post_tag




Source

return apply_filters( "rest_pre_insert_{$this->taxonomy}", $prepared_term, $request );