edit_attachment WordPress Action Hook
The edit_attachment hook is called whenever an attachment is edited. This hook can be used to perform any actions necessary when an attachment is updated.
do_action( 'edit_attachment', int $post_ID ) #
Fires once an existing attachment has been updated.
Parameters
- $post_ID
(int)Attachment ID.
Source
File: wp-includes/post.php
Changelog
Version | Description |
---|---|
2.0.0 | Introduced. |