WordPress at a glance
action is not described

rest_delete_revision action-hook . WP 4.7.0

Fires after a revision is deleted via the REST API.


add_action( 'rest_delete_revision', 'action_function_name_1111', 10, 2 );
function action_function_name_1111( $result, $request ){
	// action...
The revision object (if it was deleted or moved to the Trash successfully) or false or null (failure). If the revision was moved to the Trash, $result represents its new state; if it was deleted, $result represents its state before deletion.
The request sent to the API.

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

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

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

wp-includes/rest-api/endpoints/class-wp-rest-revisions-controller.php 479
do_action( 'rest_delete_revision', $result, $request );

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

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