A WordPress-centric search engine for devs and theme authors



rest_pre_insert_{$this->taxonomy} ›

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.





Source

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