WP HOOKS
filtrod 4.4.0

rest_endpoints_description

Args 1Plik wp-includes/rest-api/class-wp-rest-server.phpDokumentacja WP ↗

Opis — z kodu źródłowego

Filters the publicly-visible data for a single REST API route.

Parametry

ParametrTypOpis
$dataarrayPublicly-visible data for the route.

Wywołanie

Rejestracja callbackaphp
// rejestracja funkcji zwrotnej
add_filter( 'rest_endpoints_description', 'twoja_funkcja' );

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

Popularne w tej kategorii