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



comment_post ›

Since4.5.0
已弃用n/a
do_action( 'comment_post', $comment_ID, $commentdata['comment_approved'], $commentdata )
参数: (3)
  • (int) $comment_ID The comment ID.
    Required: Yes
  • (int|string) $comment_approved 1 if the comment is approved, 0 if not, 'spam' if spam.
    Required: Yes
  • (array) $commentdata Comment data.
    Required: Yes
定义在:
文档:

Fires immediately after a comment is inserted into the database.





源码

do_action( 'comment_post', $comment_ID, $commentdata['comment_approved'], $commentdata );