WP_REST_Server::get_max_batch_size() protected WP 5.6.0
Gets the maximum number of requests that can be included in a batch.
{} Это метод класса: WP_REST_Server{}
Хуки из метода
Возвращает
Число. The maximum requests.
Использование
// protected - в коде основоного (родительского) или дочернего класса $result = $this->get_max_batch_size();
Список изменений
С версии 5.6.0 | Введена. |
Код WP_REST_Server::get_max_batch_size() WP REST Server::get max batch size WP 5.6.2
protected function get_max_batch_size() {
/**
* Filters the maximum number of requests that can be included in a batch.
*
* @param int $max_size The maximum size.
*/
return apply_filters( 'rest_get_max_batch_size', 25 );
}