found_sites_query хук-фильтр . WP 4.6.0
Filters the query used to retrieve found site count.
Использование
add_filter( 'found_sites_query', 'filter_function_name_2063', 10, 2 ); function filter_function_name_2063( $found_sites_query, $site_query ){ // filter... return $found_sites_query; }
- $found_sites_query(строка)
- SQL query.
По умолчанию: 'SELECT FOUND_ROWS()' - $site_query(WP_Site_Query)
- The WP_Site_Query instance.
Список изменений
С версии 4.6.0 | Введена. |
Где вызывается хук
found_sites_query
wp-includes/class-wp-site-query.php 705
$found_sites_query = apply_filters( 'found_sites_query', 'SELECT FOUND_ROWS()', $this );