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.


Top ↑

Source

File: wp-includes/revision.php

View on Trac



Top ↑

Changelog

Changelog
VersionDescription
2.6.0Introduced.

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by theĀ Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.