wp_restore_post_revision WordPress Action Hook
The wp_restore_post_revision hook is called when a revision is restored. This hook is useful for customizing the behavior of your site when a revision is restored. For example, you could use this hook to send a notification to the author of the post that their revision has been restored.
do_action( 'wp_restore_post_revision', int $post_id , int $revision_id ) #
Fires after a post revision has been restored.
Parameters
- $post_id
(int)Post ID.
- $revision_id
(int)Post revision ID.
Source
File: wp-includes/revision.php
Changelog
Version | Description |
---|---|
2.6.0 | Introduced. |