Action hook 'add_attachment'

in WP Core File wp-includes/post.php at line 4814

Description

Fires once an attachment has been added.

Occurrences

Filename Line Number
wp-includes/post.php 4814

Parameters

Type Name Description
int $post_id Attachment ID.

PHP Doc

/**
			 * Fires once an attachment has been added.
			 *
			 * @since 2.0.0
			 *
			 * @param int $post_id Attachment ID.
			 */