WordPress at a glance
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.

Usage

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

Список изменений

С версии 4.7.0 Введена.

Где вызывается хук

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

Где используется хук в ядре WordPress

Использование не найдено.