found_networks_query
Filters the query used to retrieve found network count.
Использование
add_filter( 'found_networks_query', 'wp_kama_found_networks_query_filter', 10, 2 ); /** * Function for `found_networks_query` filter-hook. * * @param string $found_networks_query SQL query. * @param WP_Network_Query $network_query The `WP_Network_Query` instance. * * @return string */ function wp_kama_found_networks_query_filter( $found_networks_query, $network_query ){ // filter... return $found_networks_query; }
- $found_networks_query(строка)
- SQL query.
По умолчанию: 'SELECT FOUND_ROWS()' - $network_query(WP_Network_Query)
- The WP_Network_Query instance.
Список изменений
С версии 4.6.0 | Введена. |
Где вызывается хук
found_networks_query
wp-includes/class-wp-network-query.php 522
$found_networks_query = apply_filters( 'found_networks_query', 'SELECT FOUND_ROWS()', $this );