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_9882', 10, 2 );
function action_function_name_9882( $result, $request ){
	// action...
The revision object (if it was deleted or moved to the trash successfully) or false (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.


Since 4.7.0 Introduced.

Where the hook is called

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

Where the hook is used (in WP core)

Usage not found!