Menu Adam R Brown

WP hooks navigation: Home/browseActions indexFilters index

WordPress hook directory
add_attachment

Description

Runs when an attached file is first added to the database. Action function arguments: attachment ID.

This description was scraped automatically from the WordPress filter reference or action reference. If it looks like this is the wrong description, please tell me so I can fix my code.

WordPress version history for add_attachment

This database has information for all major versions from WP 1.2.1 through 6.2.

Version File Line Type
2.0 wp-includes/functions-post.php 344 View in context action
2.0.11 wp-includes/functions-post.php 348 View in context action
2.1 wp-includes/post.php 1360 View in context action
2.2 wp-includes/post.php 1366 View in context action
2.3 wp-includes/post.php 1412 View in context action
2.5 wp-includes/post.php 2134 View in context action
2.6 wp-includes/post.php 2269 View in context action
2.7 wp-includes/post.php 2408 View in context action
2.8 wp-includes/post.php 2561 View in context action
2.9 wp-includes/post.php 2812 View in context action
3.0 wp-includes/post.php 3412 View in context action
3.1 wp-includes/post.php 3654 View in context action
3.2 wp-includes/post.php 3739 View in context action
3.3 wp-includes/post.php 3736 View in context action
3.4 wp-includes/post.php 3783 View in context action
3.5 wp-includes/post.php 4039 View in context action
3.6 wp-includes/post.php 4020 View in context action
3.7 wp-includes/post.php 4116 View in context action
3.8 wp-includes/post.php 4123 View in context action
3.9 wp-includes/post.php 4597 View in context action
4.0 wp-includes/post.php 3451 View in context action
4.1 wp-includes/post.php 3446 View in context action
4.2 wp-includes/post.php 3488 View in context action
4.3 wp-includes/post.php 3538 View in context action
4.4 wp-includes/post.php 3332 View in context action
4.5 wp-includes/post.php 3476 View in context action
4.6 wp-includes/post.php 3356 View in context action
4.7 wp-includes/post.php 3452 View in context action
4.8 wp-includes/post.php 3457 View in context action
4.9 wp-includes/post.php 3528 View in context action
5.0 wp-includes/post.php 3694 View in context action
5.1 wp-includes/post.php 3884 View in context action
5.2 wp-includes/post.php 3884 View in context action
5.3 wp-includes/post.php 4052 View in context action
5.4 wp-includes/post.php 4077 View in context action
5.5 wp-includes/post.php 4193 View in context action
5.6 wp-includes/post.php 4242 View in context action
5.7 wp-includes/post.php 4317 View in context action
5.8 wp-includes/post.php 4401 View in context action
5.9 wp-includes/post.php 4609 View in context action
6.0 wp-includes/post.php 4596 View in context action
6.1 wp-includes/post.php 4640 View in context action
6.2 wp-includes/post.php 4638 View in context action

Related Hooks

We find related hooks using word stems. add_attachment has 2 significant word stem(s): add, attachment. Note that some of the hooks below may not appear in all versions of WP.