Usage
add_action( '_wp_put_post_revision', 'your_callback_function', 10, 2 );Action Callback:
function your_callback_function( $revision_id, $post['post_parent'] ) {
// Your code here
}Parameters
$revision_idParameter 1
$post['post_parent']Parameter 2
⚡ Action Hook
Action hooks allow you to insert custom code at specific points during WordPress execution. Actions do not return any values.