filtrod 5.6.0
rest_get_max_batch_size
Opis — z kodu źródłowego
Filters the maximum number of REST API requests that can be included in a batch.
Parametry
| Parametr | Typ | Opis |
|---|---|---|
$max_size | int | The maximum size. |
Wywołanie
Rejestracja callbackaphp
// rejestracja funkcji zwrotnej
add_filter( 'rest_get_max_batch_size', 'twoja_funkcja' );
function twoja_funkcja($param_1) {
// Twój kod
}
// rejestracja funkcji zwrotnej
add_filter( 'rest_get_max_batch_size', 'twoja_funkcja' );
function twoja_funkcja($param_1) {
// Twój kod
}Popularne w tej kategorii