Menu Adam R Brown

WP hooks navigation: Home/browseActions indexFilters index

Source View: rest_get_max_batch_size

To save our bandwidth, we show only a snippet of code around each occurence of the hook. View complete file in SVN (without highlighting).

Understanding Source Code

The best way to understand what a hook does is to look at where it occurs in the source code.

Remember, this hook may occur in more than one file. Moreover, the hook's context may change from version to version.

Source View

Line Code
1435       *
1436       * @return int The maximum requests.
1437       */
1438      protected function get_max_batch_size() {
1439           /**
1440            * Filters the maximum number of requests that can be included in a batch.
1441            *
1442            * @param int $max_size The maximum size.
1443            */
1444           return apply_filters( 'rest_get_max_batch_size', 25 );
1445      }
1446
1447      /**
1448       * Serves the batch/v1 request.
1449       *
1450       * @since 5.6.0
1451       *
1452       * @param WP_REST_Request $batch_request The batch request object.
1453       * @return WP_REST_Response The generated response object.