filtrod 4.4.0
rest_endpoints_description
Opis — z kodu źródłowego
Filters the publicly-visible data for a single REST API route.
Parametry
| Parametr | Typ | Opis |
|---|---|---|
$data | array | Publicly-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
}
// rejestracja funkcji zwrotnej
add_filter( 'rest_endpoints_description', 'twoja_funkcja' );
function twoja_funkcja($param_1) {
// Twój kod
}Popularne w tej kategorii