filtrod 5.2.0
ms_user_list_site_class
Opis — z kodu źródłowego
Filters the span class for a site listing on the multisite user list table.
Parametry
| Parametr | Typ | Opis |
|---|---|---|
$site_classes | string[] | Array of class names used within the span tag. Default "site-#" with the site's network ID. |
$site_id | int | Site ID. |
$network_id | int | Network ID. |
$user | \WP_User | WP_User object. |
Wywołanie
Rejestracja callbackaphp
// rejestracja funkcji zwrotnej — podaj liczbę argumentów!
add_filter( 'ms_user_list_site_class', '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( 'ms_user_list_site_class', 'twoja_funkcja', 10, 4 );
function twoja_funkcja($param_1, $param_2, $param_3, $param_4) {
// Twój kod
}Popularne w tej kategorii