wppaste
WordPress

apply_filters( 'rest_get_max_batch_size', int $max_size )

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

Parameters

$max_sizeint
The maximum size.

Fired at · 1

  • wp-includes/rest-api/class-wp-rest-server.php:1715WP_REST_Server::get_max_batch_size()

Source

		 * 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 );	} 	/**	 * Serves the batch/v1 request.	 *	 * @since 5.6.0

History

Introduced in 5.6.0. Unchanged from 6.7.7 through 7.1.0.

  1. 6.7.7
  2. 6.8.8
  3. 6.9.7
  4. 7.0.4
  5. 7.1.0

Signature, return type and hooks compared across 5 parsed releases.

About this page

Parsed data
Generated from the wordpress-develop 6.8.8 tag, and regenerated for each WordPress release so it tracks the code rather than a snapshot of it.
Corrections
Something wrong on this page? Report it and it gets fixed in the next regeneration.