do_action( 'rest_delete_revision', (mixed) $result , WP_REST_Request $request )
Fires after a revision is deleted via the REST API.
Description Description
Parameters Parameters
- $result
-
((mixed)) 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.
- $request
-
(WP_REST_Request) The request sent to the API.
Source Source
File: wp-includes/rest-api/endpoints/class-wp-rest-revisions-controller.php
Changelog Changelog
Version | Description |
---|---|
4.7.0 | Introduced. |