woocommerce_rest_batch_items_limit

woocommerce_rest_batch_items_limit

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: filter

See hook in core

Displaying hooks found in version: woocommerce.9.5.1

apply_filters('woocommerce_rest_batch_items_limit') is found 1 times:

  • /includes/rest-api/Controllers/Version3/class-wc-rest-controller.php line 180
    	 * @param array $items Request items.
    	 * @return bool|WP_Error
    	 */
    	protected function check_batch_limit( $items ) {
    		$limit = apply_filters( 'woocommerce_rest_batch_items_limit', 100, $this->get_normalized_rest_base() );
    		$total = 0;
    
    		if ( ! empty( $items['create'] ) && is_countable( $items['create'] ) ) {
    			$total += count( $items['create'] );
    		}