wordpress / latest / classes / wp_rest_server / get_max_batch_size.html

WP_REST_Server::get_max_batch_size(): int

Gets the maximum number of requests that can be included in a batch.

Return

int The maximum requests.

Source

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

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 );
}

Hooks

Uses

Uses Description

Changelog

Version Description
5.6.0 Introduced.

© 2003–2022 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/classes/wp_rest_server/get_max_batch_size