WP HOOKS
filtrod 3.4.0

xmlrpc_default_posttype_fields

Args 2Plik wp-includes/class-wp-xmlrpc-server.phpDokumentacja WP ↗

Opis — z kodu źródłowego

Filters the default post type query fields used by the given XML-RPC method.

Parametry

ParametrTypOpis
$fieldsarrayAn array of post type fields to retrieve. By default, contains 'labels', 'cap', and 'taxonomies'.
$methodstringThe method name.

Wywołanie

Rejestracja callbackaphp
// rejestracja funkcji zwrotnej — podaj liczbę argumentów!
add_filter( 'xmlrpc_default_posttype_fields', 'twoja_funkcja', 10, 2 );

function twoja_funkcja($param_1, $param_2) {
	// Twój kod
}

Popularne w tej kategorii