woocommerce_rest_batch_items_limit filter-hookWC 1.0

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

WC_REST_Controller::check_batch_limit()
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() );

Where the hook is used in WooCommerce

Usage not found.