do_action( ‘wp_delete_post_revision’, int $revision_id, WP_Post $revision )

In this article

Fires once a post revision has been deleted.

Parameters

$revision_idint
Post revision ID.
$revisionWP_Post
Post revision object.

Source

do_action( 'wp_delete_post_revision', $revision->ID, $revision );

Changelog

VersionDescription
2.6.0Introduced.

User Contributed Notes

You must log in before being able to contribute a note or feedback.