woocommerce_rest_batch_items_limit хук-фильтрWC 1.0

Check batch limit.

Использование

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(массив)
Request items.
$normalized_rest_base
-

Где вызывается хук

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() );

Где используется хук в WooCommerce

Использование не найдено.