Usage
add_action( 'attachment_updated', 'your_callback_function', 10, 3 );Action Callback:
function your_callback_function( $post_id, $post_after, $post_before ) {
// Your code here
}Parameters
$post_idParameter 1
$post_afterParameter 2
$post_beforeParameter 3
⚡ Action Hook
Action hooks allow you to insert custom code at specific points during WordPress execution. Actions do not return any values.