_wp_put_post_revision WordPress Action Hook
If you're a developer who is familiar with the WordPress hook system, you may be wondering what the _wp_put_post_revision hook is for. This hook is called when a revision is saved for a post, and it allows you to do something with that revision. For example, you could use this hook to save the revision to a different database table, or to send an email notification whenever a revision is saved.
do_action( '_wp_put_post_revision', int $revision_id ) #
Fires once a revision has been saved.
Parameters
- $revision_id
(int)Post revision ID.
Source
File: wp-includes/revision.php
Changelog
Version | Description |
---|---|
2.6.0 | Introduced. |