wphooks.info - wp_delete_post_revision

wp_delete_post_revision

The hook occurs in the following file:

wp-includes/revision.php:
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
	$delete = wp_delete_post( $revision->ID );
	if ( $delete ) {
		/**
		 * Fires once a post revision has been deleted.
		 *
		 * @since 2.6.0
		 *
		 * @param int          $revision_id Post revision ID.
		 * @param object|array $revision    Post revision object or array.
		 */
		do_action( 'wp_delete_post_revision', $revision->ID, $revision );
	}

	return $delete;
}

/**
 * Returns all revisions of specified post.
 *
 * @since 2.6.0