A WordPress-centric search engine for devs and theme authors



add_attachment ›

Since2.0.0
Deprecatedn/a
do_action( 'add_attachment', $post_ID )
Parameters:
  • (int) $post_ID Attachment ID.
    Required: Yes
Defined at:
Codex:

Fires once an attachment has been added.





Source

do_action( 'add_attachment', $post_ID );