
如何使用浏览器检查元素工具
apply_filters( 'get_comment_type', $comment->comment_type, $comment->comment_ID, $comment )
get_comment_type 函数返回一个评论的类型。它接收一个评论对象作为参数,并返回一个表示评论类型的字符串,如 “comment “表示普通评论,”pingback “表示pingbacks。
过滤返回的评论类型。
return apply_filters( 'get_comment_type', $comment->comment_type, $comment->comment_ID, $comment );