filtrod 3.5.0
xmlrpc_default_user_fields
Opis — z kodu źródłowego
Filters the default user query fields used by the given XML-RPC method.
Parametry
| Parametr | Typ | Opis |
|---|---|---|
$fields | array | An array of user fields to retrieve. By default, contains 'all'. |
$method | string | The method name. |
Wywołanie
Rejestracja callbackaphp
// rejestracja funkcji zwrotnej — podaj liczbę argumentów!
add_filter( 'xmlrpc_default_user_fields', 'twoja_funkcja', 10, 2 );
function twoja_funkcja($param_1, $param_2) {
// Twój kod
}
// rejestracja funkcji zwrotnej — podaj liczbę argumentów!
add_filter( 'xmlrpc_default_user_fields', 'twoja_funkcja', 10, 2 );
function twoja_funkcja($param_1, $param_2) {
// Twój kod
}Popularne w tej kategorii