On this page
do_action( 'wp_restore_post_revision', int $post_id, int $revision_id )
Fires after a post revision has been restored.
Parameters
$post_idint-
Post ID.
$revision_idint-
Post revision ID.
Source
File: wp-includes/revision.php. View all references
do_action( 'wp_restore_post_revision', $post_id, $revision['ID'] );
Related
Used By
| Used By | Description |
|---|---|
| wp_restore_post_revision() wp-includes/revision.php | Restores a post to the specified revision. |
Changelog
| Version | Description |
|---|---|
| 2.6.0 | Introduced. |
© 2003–2022 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/wp_restore_post_revision