wpseek.com
Eine auf WordPress spezialiserte Suchmaschine für Entwickler und Theme-Autoren



wp_media_attach_action › WordPress Action Hooks

Seit5.5.0
Veraltetn/v
do_action( 'wp_media_attach_action', $action, $attachment_id, $parent_id )
Parameter: (3)
  • () action Attach/detach action. Accepts 'attach' or 'detach'.
    Erforderlich: Ja
  • () attachment_id The attachment ID.
    Erforderlich: Ja
  • () parent_id Attachment parent ID.
    Erforderlich: Ja
Definiert in:
Codex:

Fires when media is attached or detached from a post.





Quellcode

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