WordPress.org

Codex

Plugin API/Action Reference/add attachment

Description

This hook is called when an attachment created by wp_insert_attachment() in wp-includes/post.php.

Parameters