woocommerce_rest_batch_items_limit filter-hook . WC 1.0
Check batch limit.
Usage
add_filter( 'woocommerce_rest_batch_items_limit', 'filter_function_name_9329', 10, 2 ); function filter_function_name_9329( $items, $normalized_rest_base ){ // filter... return $items; }
- $items(array)
- Request items.
- $normalized_rest_base
- -
Where the hook is called
woocommerce_rest_batch_items_limit
woocommerce/includes/rest-api/Controllers/Version3/class-wc-rest-controller.php 180
$limit = apply_filters( 'woocommerce_rest_batch_items_limit', 100, $this->get_normalized_rest_base() );