Description
Fires when media is attached or detached from a post.
Occurrences
Filename | Line Number |
---|---|
wp-admin/includes/media.php | 3866 |
Parameters
Type | Name | Description |
---|---|---|
string | $action | Attach/detach action. Accepts 'attach' or 'detach'. |
int | $attachment_id | The attachment ID. |
int | $parent_id | Attachment parent ID. |
PHP Doc
/**
* Fires when media is attached or detached from a post.
*
* @since 5.5.0
*
* @param string $action Attach/detach action. Accepts 'attach' or 'detach'.
* @param int $attachment_id The attachment ID.
* @param int $parent_id Attachment parent ID.
*/