Fires once an attachment has been added.
Parameters
$post_idint- Attachment ID.
Source
do_action( 'add_attachment', $post_id );
Changelog
| Version | Description |
|---|---|
| 2.0.0 | Introduced. |
| CARVIEW |
Fires once an attachment has been added.
$post_idintThis hook is called when an attachment created by wp_insert_attachment() in wp-includes/post.php.
do_action( 'add_attachment', $post_id );
| Used by | Description |
|---|---|
wp_insert_post()wp-includes/post.php | Inserts or update a post. |
| Version | Description |
|---|---|
| 2.0.0 | Introduced. |
User Contributed Notes
You must log in before being able to contribute a note or feedback.