wpseek.com
Eine auf WordPress spezialiserte Suchmaschine für Entwickler und Theme-Autoren



rest_delete_revision › WordPress Action Hooks

Seit4.7.0
Veraltetn/v
do_action( 'rest_delete_revision', $result, $request )
Parameter: (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.
    Erforderlich: Ja
  • (WP_REST_Request) $request The request sent to the API.
    Erforderlich: Ja
Definiert in:
Codex:

Fires after a revision is deleted via the REST API.





Quellcode

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