WordPress at Your Fingertips
filter is not described

rest_get_max_batch_size filter-hook . WP 5.6.0

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

Usage

add_filter( 'rest_get_max_batch_size', 'filter_function_name_6728' );
function filter_function_name_6728( $max_size ){
	// filter...

	return $max_size;
}
$max_size(int)
The maximum size.

Changelog

Since 5.6.0 Introduced.

Where the hook is called

WP_REST_Server::get_max_batch_size()
rest_get_max_batch_size
wp-includes/rest-api/class-wp-rest-server.php 1455
return apply_filters( 'rest_get_max_batch_size', 25 );

Where in WP core the hook is used WordPress

Usage not found.