filtrod 5.5.0
rest_queried_resource_route
Opis — z kodu źródłowego
Filters the REST route for the currently queried object.
Parametry
| Parametr | Typ | Opis |
|---|---|---|
$link | string | The route with a leading slash, or an empty string. |
Wywołanie
Rejestracja callbackaphp
// rejestracja funkcji zwrotnej
add_filter( 'rest_queried_resource_route', 'twoja_funkcja' );
function twoja_funkcja($param_1) {
// Twój kod
}
// rejestracja funkcji zwrotnej
add_filter( 'rest_queried_resource_route', 'twoja_funkcja' );
function twoja_funkcja($param_1) {
// Twój kod
}Popularne w tej kategorii