Outil de recherche WordPress pour les développeurs et auteurs de thèmes



rest_delete_revision ›

Depuis4.7.0
Dépréciéen/a
do_action( 'rest_delete_revision', $result, $request )
Paramètres: (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.
    Requis: Oui
  • (WP_REST_Request) $request The request sent to the API.
    Requis: Oui
Défini(e) dans:
Codex:

Fires after a revision is deleted via the REST API.





Source

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