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