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



wp_insert_comment › WordPress动作钩子

Since2.8.0
已弃用n/a
› do_action( 'wp_insert_comment', $id, $comment )
参数: (2)
  • () id The comment ID.
    Required: Yes
  • () comment Comment object.
    Required: Yes
定义在:
文档:

Fires immediately after a comment is inserted into the database.





源码

do_action( 'wp_insert_comment', $id, $comment );