1. 首页
  2. WordPress钩子手册

found_comments_query

apply_filters( ‘found_comments_query’, string $found_comments_query, WP_Comment_Query $comment_query )

筛选器挂钩:筛选用于检索找到的注释计数的查询。
Filter Hook: Filters the query used to retrieve found comment count.

目录锚点:#参数#源码


参数(Parameters)

参数 类型 说明
$found_comments_query (string) SQL查询。默认为“SELECT FOUND_ROWS()”。
$comment_query (WP_Comment_Query) WP_Comment_查询实例。

源码(Source)


更新版本 源码位置 使用 被使用
4.4.0 wp-includes/class-wp-comment-query.php:949 1 0

found_comments_query 为WP2原创文章,链接:https://www.wp2.cn/hook/found_comments_query/