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



rest_delete_{$this->taxonomy} › WordPress Action Hooks

Since4.7.0
Deprecatedn/a
do_action( "rest_delete_{$this->taxonomy}", $term, $response, $request )
Parameters: (3)
  • (WP_Term) $term The deleted term.
    Required: Yes
  • (WP_REST_Response) $response The response data.
    Required: Yes
  • (WP_REST_Request) $request The request sent to the API.
    Required: Yes
Defined at:
Codex:

Fires after a single term is deleted via the REST API.

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

Possible hook names include:

  • rest_delete_category
  • rest_delete_post_tag




Source

do_action( "rest_delete_{$this->taxonomy}", $term, $response, $request );