rest_get_max_batch_size хук-фильтр . WP 1.0
Filters the maximum number of requests that can be included in a batch.
Использование
add_filter( 'rest_get_max_batch_size', 'filter_function_name_8423' ); function filter_function_name_8423( $max_size ){ // filter... return $max_size; }
- $max_size(число)
- The maximum size.
Где вызывается хук
rest_get_max_batch_size
wp-includes/rest-api/class-wp-rest-server.php 1444
return apply_filters( 'rest_get_max_batch_size', 25 );