do_action( ‘attachment_updated’, int $post_id, WP_Post $post_after, WP_Post $post_before )

In this article

Fires once an existing attachment has been updated.

Parameters

$post_idint
Post ID.
$post_afterWP_Post
Post object following the update.
$post_beforeWP_Post
Post object before the update.

Source

do_action( 'attachment_updated', $post_id, $post_after, $post_before );

Changelog

VersionDescription
4.4.0Introduced.

User Contributed Notes

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