HTTP/2 200
server: nginx
date: Sat, 11 Oct 2025 09:54:06 GMT
content-type: text/html; charset=UTF-8
vary: Accept-Encoding
x-olaf: ⛄
vary: accept, content-type
link:
; rel="https://api.w.org/"
link:
; rel="alternate"; title="JSON"; type="application/json"
link: ; rel=shortlink
x-frame-options: SAMEORIGIN
content-encoding: gzip
alt-svc: h3=":443"; ma=86400
x-nc: MISS ord 1
attachment_updated – Hook | Developer.WordPress.org
do_action( ‘attachment_updated’, int $post_id, WP_Post $post_after, WP_Post $post_before )
Fires once an existing attachment has been updated.
$post_id
intPost ID.
$post_after
WP_PostPost object following the update.
$post_before
WP_PostPost object before the update.
Version | Description |
---|
4.4.0 | Introduced. |
User Contributed Notes
You must log in before being able to contribute a note or feedback.