wp_delete_post_revision WordPress Action Hook
The wp_delete_post_revision hook is called when a revision is deleted from the database. This hook can be used to clean up any data associated with the revision, such as meta data or custom fields.
do_action( 'wp_delete_post_revision', int $revision_id , WP_Post $revision ) #
Fires once a post revision has been deleted.
Parameters
- $revision_id
(int)Post revision ID.
- $revision
(WP_Post)Post revision object.
Source
File: wp-includes/revision.php
Changelog
Version | Description |
---|---|
2.6.0 | Introduced. |