comment_post
最后更新于:2021-11-26 03:59:20
do_action( ‘comment_post’, int $comment_ID, int|string $comment_approved, array $commentdata )
Fires immediately after a comment is inserted into the database.
参数
- $comment_ID
-
(int)
The comment ID. - $comment_approved
-
(int|string)
1 if the comment is approved, 0 if not, ‘spam’ if spam. - $commentdata
-
(array)
Comment data.
源文件
文件: gc-includes/comment.php