wphooks.info - wp_restore_post_revision

wp_restore_post_revision

The hook occurs in the following file:

wp-includes/revision.php:
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
	update_post_meta( $post_id, '_edit_last', get_current_user_id() );

	/**
	 * Fires after a post revision has been restored.
	 *
	 * @since 2.6.0
	 *
	 * @param int $post_id     Post ID.
	 * @param int $revision_id Post revision ID.
	 */
	do_action( 'wp_restore_post_revision', $post_id, $revision['ID'] );

	return $post_id;
}

/**
 * Deletes a revision.
 *
 * Deletes the row from the posts table corresponding to the specified revision.
 *