Wordpress 钩子:wp_insert_comment
文章目录
注释插入数据库后立即触发。
原型
do_action( 'wp_insert_comment', int $id, WP_Comment $comment )
参数
$id
(int)
评论ID。
$comment
(WP_Comment)
评论对象。
源文件
路径:wp-includes/comment.php
其他
英文文档:https://developer.wordpress.org/reference/hooks/wp_insert_comment/
文章作者 iBllex
上次更新 2019-02-14