woocommerce_rest_batch_items_limit
Check batch limit.
Usage
add_filter( 'woocommerce_rest_batch_items_limit', 'wp_kama_woocommerce_rest_batch_items_limit_filter', 10, 2 ); /** * Function for `woocommerce_rest_batch_items_limit` filter-hook. * * @param array $items Request items. * @param $normalized_rest_base * * @return array */ function wp_kama_woocommerce_rest_batch_items_limit_filter( $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() );