wp_delete_post_revision action-hookWP 2.6.0

Fires once a post revision has been deleted.

Usage

add_action( 'wp_delete_post_revision', 'wp_kama_delete_post_revision_action', 10, 2 );

/**
 * Function for `wp_delete_post_revision` action-hook.
 * 
 * @param int     $revision_id Post revision ID.
 * @param WP_Post $revision    Post revision object.
 *
 * @return void
 */
function wp_kama_delete_post_revision_action( $revision_id, $revision ){

	// action...
}
$revision_id(int)
Post revision ID.
$revision(WP_Post)
Post revision object.

Changelog

Since 2.6.0 Introduced.

Where the hook is called

wp_delete_post_revision()
wp_delete_post_revision
wp-includes/revision.php 468
do_action( 'wp_delete_post_revision', $revision->ID, $revision );

Where the hook is used in WordPress

Usage not found.