A WordPress-centric search engine for devs and theme authors



rest_insert_{$this->taxonomy} ›

Since4.7.0
Deprecatedn/a
do_action( "rest_insert_{$this->taxonomy}", $term, $request, true )
Parameters: (3)
  • (WP_Term) $term Inserted or updated term object.
    Required: Yes
  • (WP_REST_Request) $request Request object.
    Required: Yes
  • (bool) $creating True when creating a term, false when updating.
    Required: Yes
Defined at:
Codex:

Fires after a single term is created or updated via the REST API.

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





Source

do_action( "rest_insert_{$this->taxonomy}", $term, $request, true );