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