wpseek.com
Outil de recherche WordPress pour les développeurs et auteurs de thèmes



wp_media_attach_action › Les Actions WordPress

Depuis5.5.0
Dépréciéen/a
› do_action( 'wp_media_attach_action', $action, $attachment_id, $parent_id )
Paramètres: (3)
  • () action Attach/detach action. Accepts 'attach' or 'detach'.
    Requis: Oui
  • () attachment_id The attachment ID.
    Requis: Oui
  • () parent_id Attachment parent ID.
    Requis: Oui
Défini(e) dans:
Codex:

Fires when media is attached or detached from a post.





Source

do_action( 'wp_media_attach_action', $action, $attachment_id, $parent_id );