wp_media_attach_action – action

Fires when media is attached or detached from a post. 

Parameters

.
( 5.5.0 ) . .
$action
( string ) Attach/detach action. Accepts ‘attach’ or ‘detach’. . . .
( int ) $attachment_id The attachment ID. . . .
( int ) $parent_id Attachment parent ID. . . .
API Letters: ,,

Implementers