WordPress at Your Fingertips
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_8314', 10, 2 );
function action_function_name_8314( $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.


Since 4.7.0 Introduced.

Where the hook is called

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

Where in WP core the hook is used WordPress

Usage not found.