wp_media_attach_action


wp_media_attach_action ( $parent_id, $action = 'attach' )

Parameters:
  • (int) $parent_id Attachment parent ID.
  • (string) $action Optional. Attach/detach action. Accepts 'attach' or 'detach'. Default 'attach'.
Defined at:

Description

Encapsulate logic for Attach/Detach actions

Related Functions

wp_get_attachment_caption, wp_image_matches_ratio, wp_suspend_cache_addition, _media_button, _wp_personal_data_handle_actions

Top Google Results

User discussions

wpseek mobile