Home/Hooks/attachment_updated
ACTION

attachment_updated

Fires once an existing attachment has been updated.

wp-includes/post.php
Line 5023
3 Parameters
View Source

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_id

Parameter 1

$post_after

Parameter 2

$post_before

Parameter 3

⚡ Action Hook

Action hooks allow you to insert custom code at specific points during WordPress execution. Actions do not return any values.