add_attachment

add_attachment

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: action
See hook in action

See hook in core

Displaying hooks found in version: wordpress-6.7

do_action('add_attachment') is found 1 times:

  • /wp-includes/post.php line 4983
    			 * @since 2.0.0
    			 *
    			 * @param int $post_id Attachment ID.
    			 */
    			do_action( 'add_attachment', $post_id );
    		}
    
    		return $post_id;
    	}
    
    	if ( $update ) {
    

See this hook used in plugins: