add_attachment action-hook . WP 2.0.0
Fires once an attachment has been added.
Usage
add_action( 'add_attachment', 'action_function_name_4589' ); function action_function_name_4589( $post_ID ){ // action... }
- $post_ID(int)
- Attachment ID.
Changelog
Since 2.0.0 | Introduced. |
Where the hook is called
add_attachment
wp-includes/post.php 4242
do_action( 'add_attachment', $post_ID );