wphooks.info - wp_delete_post_revision

wp_delete_post_revision

(trunk - 5.0-alpha-42541)

The hook occurs in the following file:

wp-includes/revision.php:
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
	$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