Fires when media is attached or detached from a post.
Parameters
$actionstring- Attach/detach action. Accepts
'attach'or'detach'. $attachment_idint- The attachment ID.
$parent_idint- Attachment parent ID.
Source
do_action( 'wp_media_attach_action', $action, $attachment_id, $parent_id );
Changelog
| Version | Description |
|---|---|
| 5.5.0 | Introduced. |
User Contributed Notes
You must log in before being able to contribute a note or feedback.