wphooks.info - wp_restore_post_revision

wp_restore_post_revision

(trunk - 5.1-alpha-44286)

The hook occurs in the following file:

wp-includes/revision.php:
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
	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.
 *