wp-includes/rest-api/class-wp-rest-server.php:1698Gets the maximum number of requests that can be included in a batch.
intOne hook fires while WP_REST_Server::get_max_batch_size() runs, in this order:
Filters the maximum number of REST API requests that can be included in a batch.
protected function get_max_batch_size() { /** * Filters the maximum number of REST API requests that can be included in a batch. * * @since 5.6.0 * * @param int $max_size The maximum size. */ return apply_filters( 'rest_get_max_batch_size', 25 ); }Introduced in 5.6.0. Unchanged from 6.7.7 through 7.1.0.
Signature, return type and hooks compared across 5 parsed releases.
src/wp-includes/rest-api/class-wp-rest-server.php, and regenerated for each WordPress release so it tracks the code rather than a snapshot of it.