filtrod MU (3.0.0)
get_blogs_of_user
Opis — z kodu źródłowego
Filters the list of sites a user belongs to.
Parametry
| Parametr | Typ | Opis |
|---|---|---|
$sites | object[] | An array of site objects belonging to the user. |
$user_id | int | User ID. |
$all | bool | Whether the returned sites array should contain all sites, including those flagged for deletion, archived, or marked as spam. |
Wywołanie
Rejestracja callbackaphp
// rejestracja funkcji zwrotnej — podaj liczbę argumentów!
add_filter( 'get_blogs_of_user', 'twoja_funkcja', 10, 3 );
function twoja_funkcja($param_1, $param_2, $param_3) {
// Twój kod
}
// rejestracja funkcji zwrotnej — podaj liczbę argumentów!
add_filter( 'get_blogs_of_user', 'twoja_funkcja', 10, 3 );
function twoja_funkcja($param_1, $param_2, $param_3) {
// Twój kod
}Popularne w tej kategorii