_wp_put_post_revision action-hookWP 2.6.0

Fires once a revision has been saved.

Usage

add_action( '_wp_put_post_revision', 'wp_kama__wp_put_post_revision_action' );

/**
 * Function for `_wp_put_post_revision` action-hook.
 * 
 * @param int $revision_id Post revision ID.
 *
 * @return void
 */
function wp_kama__wp_put_post_revision_action( $revision_id ){

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

Changelog

Since 2.6.0 Introduced.

Where the hook is called

_wp_put_post_revision()
_wp_put_post_revision
wp-includes/revision.php 347
do_action( '_wp_put_post_revision', $revision_id );

Where the hook is used in WordPress

Usage not found.