W3cubDocs

/WordPress

do_action( ‘_wp_put_post_revision’, int $revision_id, int $post_id )

Fires once a revision has been saved.

Parameters

$revision_idint
Post revision ID.
$post_idint
Post ID.

Source

do_action( '_wp_put_post_revision', $revision_id, $post['post_parent'] );

Changelog

Version Description
6.4.0 The post_id parameter was added.
2.6.0 Introduced.

© 2003–2024 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/_wp_put_post_revision