do_action( ‘rest_delete_revision’, WP_Post|false|null $result, WP_REST_Request $request )

In this article

Fires after a revision is deleted via the REST API.

Parameters

$resultWP_Post|false|null
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.
$requestWP_REST_Request
The request sent to the API.

Source

do_action( 'rest_delete_revision', $result, $request );

Changelog

VersionDescription
4.7.0Introduced.

User Contributed Notes

You must log in before being able to contribute a note or feedback.