WordPress.org

Ready to get started?Download WordPress

Codex

Attention Interested in functions, hooks, classes, or methods? Check out the new WordPress Code Reference!

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