wpseek.com
Un motore di ricerca WordPress per sviluppatori e autori di temi



delete_attachment › WordPress Action Hooks

Da5.5.0
Deprecaton/a
› do_action( 'delete_attachment', $post_id, $post )
Parametri: (2)
  • () post_id Attachment ID.
    Richiesto: Sì
  • () post Post object.
    Richiesto: Sì
Definito a:
Codex:

Fires before an attachment is deleted, at the start of wp_delete_attachment().





Sorgenti

do_action( 'delete_attachment', $post_id, $post );