get_comment_type
apply_filters( ‘get_comment_type’, string $comment_type , int $comment_ID , WP_Comment $comment )
过滤器::过滤返回的注释类型。
Filter Hook: Filters the returned comment type.
参数(Parameters)
参数 | 类型 | 说明 |
---|---|---|
$comment_type | (string) | 注释的类型,如“comment”、“pingback”或“trackback”。 |
$comment_ID | (int) | 评论ID。 |
$comment | (WP_Comment) | 注释对象。 |
源码(Source)
更新版本 | 源码位置 | 使用 | 被使用 |
---|---|---|---|
4.1.0 | wp-includes/comment-template.php:1097 | 1 | 0 |
get_comment_type 为WP2原创文章,链接:https://www.wp2.cn/hook/get_comment_type-2/