found_sites_query
apply_filters( ‘found_sites_query’, string $found_sites_query , WP_Site_Query $site_query )
筛选器挂钩:筛选用于检索找到的站点计数的查询。
Filter Hook: Filters the query used to retrieve found site count.
参数(Parameters)
参数 | 类型 | 说明 |
---|---|---|
$found_sites_query | (string) | SQL查询。默认为“SELECT FOUND_ROWS()”。 |
$site_query | (WP_Site_Query) | WP_Site_查询实例。 |
源码(Source)
更新版本 | 源码位置 | 使用 | 被使用 |
---|---|---|---|
4.6.0 | wp-includes/class-wp-site-query.php:688 | 1 | 0 |
found_sites_query 为WP2原创文章,链接:https://www.wp2.cn/hook/found_sites_query/