tptn_allow_network_queries
Filters whether popular posts lists may include other sites in the network.
Type: filter
Since: 4.6.0
Source: includes/class-top-ten-core-query.php line 244
Parameters
| Type | Name | Description |
|---|---|---|
bool |
$allow |
Whether to allow lists across sites. Default false. |
array |
$args |
Query arguments. |
Usage
add_filter( 'tptn_allow_network_queries', function($allow, $args) {
// ...
return $allow;
} );