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

Encapsulates the logic for Attach/Detach actions.

Related Functions

wp_get_attachment_caption, wp_image_matches_ratio, wp_suspend_cache_addition, _wp_personal_data_handle_actions, _media_button

Top Google Results

User discussions

wpseek mobile