WordPress at a glance
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_7343' );
function action_function_name_7343( $post_ID ){
	// action...
}
$post_ID(int)
Attachment ID.

Where the hook is called

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

Where the hook is used (in WP core)

Использование не найдено.