Files
Filename | Hook Type | Line Number | PHP Doc |
---|---|---|---|
wp-admin/includes/media.php | do_action | 3825 | /** * 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. */ |
Hook Parameters
Parameter Type | Name | Description |
---|---|---|
string | $action | Attach/detach action. Accepts 'attach' or 'detach'. |
int | $attachment_id | The attachment ID. |
int | $parent_id | Attachment parent ID. |