On this page
do_action( 'rest_delete_revision', WP_Post|false|null $result, WP_REST_Request $request )
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
File: wp-includes/rest-api/endpoints/class-wp-rest-revisions-controller.php. View all references
do_action( 'rest_delete_revision', $result, $request );
Related
Used By
| Used By | Description |
|---|---|
| WP_REST_Revisions_Controller::delete_item() wp-includes/rest-api/endpoints/class-wp-rest-revisions-controller.php | Deletes a single revision. |
Changelog
| Version | Description |
|---|---|
| 4.7.0 | Introduced. |
© 2003–2022 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/rest_delete_revision