filtrod 3.3.0
wp_is_large_network
Opis — z kodu źródłowego
Filters whether the network is considered large.
Parametry
| Parametr | Typ | Opis |
|---|---|---|
$is_large_network | bool | Whether the network has more than 10000 users or sites. |
$component | string | The component to count. Accepts 'users', or 'sites'. |
$count | int | The count of items for the component. |
$network_id | int | The ID of the network being checked. |
Wywołanie
Rejestracja callbackaphp
// rejestracja funkcji zwrotnej — podaj liczbę argumentów!
add_filter( 'wp_is_large_network', 'twoja_funkcja', 10, 4 );
function twoja_funkcja($param_1, $param_2, $param_3, $param_4) {
// Twój kod
}
// rejestracja funkcji zwrotnej — podaj liczbę argumentów!
add_filter( 'wp_is_large_network', 'twoja_funkcja', 10, 4 );
function twoja_funkcja($param_1, $param_2, $param_3, $param_4) {
// Twój kod
}