Used By
Used By | Description |
---|---|
wp-admin/includes/media.php: wp_media_attach_action() | Encapsulates the logic for Attach/Detach actions. |
Fires when media is attached or detached from a post.
(string) Attach/detach action. Accepts 'attach' or 'detach'.
(int) The attachment ID.
(int) Attachment parent ID.
Version | Description |
---|---|
5.5.0 | Introduced. |
© 2003–2019 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/wp_media_attach_action