WordPress at Your Fingertips
action is not described

rest_delete_(taxonomy) action-hook . WP 4.7.0

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


add_action( 'rest_delete_(taxonomy)', 'action_function_name_7654', 10, 3 );
function action_function_name_7654( $term, $response, $request ){
	// action...
The deleted term.
The response data.
The request sent to the API.


Since 4.7.0 Introduced.

Where the hook is called

wp-includes/rest-api/endpoints/class-wp-rest-terms-controller.php 730
do_action( "rest_delete_{$this->taxonomy}", $term, $response, $request );

Where in WP core the hook is used WordPress

Usage not found.