wpseek.com
A WordPress-centric search engine for devs and theme authors



rest_delete_revision › WordPress Action Hooks

Since4.7.0
Deprecatedn/a
do_action( 'rest_delete_revision', $result, $request )
Parameters: (2)
  • (WP_Post|false|null) $result 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.
    Required: Yes
  • (WP_REST_Request) $request The request sent to the API.
    Required: Yes
Defined at:
Codex:

Fires after a revision is deleted via the REST API.





Source

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