注释插入数据库后立即触发。
原型
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/
注释插入数据库后立即触发。
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/
请在后台设置小工具!