A WordPress-centric search engine for devs and theme authors



rest_delete_revision ›

Since4.7.0
Deprecatedn/a
do_action( 'rest_delete_revision', $result, $request )
Parameters: (2)
  • ((mixed)) $result 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.
    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 );