filtrod 4.4.0
wp_dropdown_users_args
Opis — z kodu źródłowego
Filters the query arguments for the list of users in the dropdown.
Parametry
| Parametr | Typ | Opis |
|---|---|---|
$query_args | array | The query arguments for get_users(). |
$parsed_args | array | The arguments passed to wp_dropdown_users() combined with the defaults. |
Wywołanie
Rejestracja callbackaphp
// rejestracja funkcji zwrotnej — podaj liczbę argumentów!
add_filter( 'wp_dropdown_users_args', 'twoja_funkcja', 10, 2 );
function twoja_funkcja($param_1, $param_2) {
// Twój kod
}
// rejestracja funkcji zwrotnej — podaj liczbę argumentów!
add_filter( 'wp_dropdown_users_args', 'twoja_funkcja', 10, 2 );
function twoja_funkcja($param_1, $param_2) {
// Twój kod
}Popularne w tej kategorii