filtrod 3.4.0
xmlrpc_default_taxonomy_fields
Opis — z kodu źródłowego
Filters the default taxonomy query fields used by the given XML-RPC method.
Parametry
| Parametr | Typ | Opis |
|---|---|---|
$fields | array | An array of taxonomy fields to retrieve. By default, contains 'labels', 'cap', and 'object_type'. |
$method | string | The method name. |
Wywołanie
Rejestracja callbackaphp
// rejestracja funkcji zwrotnej — podaj liczbę argumentów!
add_filter( 'xmlrpc_default_taxonomy_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_taxonomy_fields', 'twoja_funkcja', 10, 2 );
function twoja_funkcja($param_1, $param_2) {
// Twój kod
}Popularne w tej kategorii