apply_filters( 'rest_get_max_batch_size', int $max_size )

Filters the maximum number of REST API requests that can be included in a batch.

Parameters

$max_size

(int) The maximum size.

Source

File: wp-includes/rest-api/class-wp-rest-server.php

View on Trac

Changelog

Version Description
5.6.0 Introduced.

© 2003–2021 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/rest_get_max_batch_size