Action hook 'rest_delete_revision'

in WP Core File wp-includes/rest-api/endpoints/class-wp-rest-revisions-controller.php at line 502

Description

Fires after a revision is deleted via the REST API.

Occurrences

Filename Line Number
wp-includes/rest-api/endpoints/class-wp-rest-revisions-controller.php 502

Parameters

Type Name Description
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.
WP_REST_Request $request The request sent to the API.

PHP Doc

/**
		 * Fires after a revision is deleted via the REST API.
		 *
		 * @since 4.7.0
		 *
		 * @param 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.
		 * @param WP_REST_Request $request The request sent to the API.
		 */