WP_REST_Server::get_max_batch_size(): int

In this article

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

Return

int The maximum requests.

Source

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

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.

Changelog

VersionDescription
5.6.0Introduced.

User Contributed Notes

You must log in before being able to contribute a note or feedback.