WordPress at Your Fingertips
action is not described

add_attachment action-hook . WP 2.0.0

Fires once an attachment has been added.

Usage

add_action( 'add_attachment', 'action_function_name_6432' );
function action_function_name_6432( $post_ID ){
	// action...
}
$post_ID(int)
Attachment ID.

Changelog

Since 2.0.0 Introduced.

Where the hook is called

wp_insert_post()
add_attachment
wp-includes/post.php 4401
do_action( 'add_attachment', $post_ID );

Where in WP core the hook is used WordPress

Usage not found.