WordPress开发者和主题制作者的搜索引擎



add_attachment ›

Since2.0.0
已弃用n/a
do_action( 'add_attachment', $post_ID )
参数:
  • (int) $post_ID Attachment ID.
    Required: Yes
定义在:
文档:

Fires once an attachment has been added.





源码

do_action( 'add_attachment', $post_ID );