woocommerce_api_bulk_limit

woocommerce_api_bulk_limit

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

See hook in core

Displaying hooks found in version: woocommerce.8.7.0

apply_filters('woocommerce_api_bulk_limit') is found 9 times:

  • /includes/legacy/api/v2/class-wc-api-coupons.php line 525
    				throw new WC_API_Exception( 'woocommerce_api_missing_coupons_data', sprintf( __( 'No %1$s data specified to create/edit %1$s', 'woocommerce' ), 'coupons' ), 400 );
    			}
    
    			$data  = $data['coupons'];
    			$limit = apply_filters( 'woocommerce_api_bulk_limit', 100, 'coupons' );
    
    			// Limit bulk operation
    			if ( count( $data ) > $limit ) {
    				throw new WC_API_Exception( 'woocommerce_api_coupons_request_entity_too_large', sprintf( __( 'Unable to accept more than %s items for this request.', 'woocommerce' ), $limit ), 413 );
    			}
    
    
  • /includes/legacy/api/v2/class-wc-api-customers.php line 788
    				throw new WC_API_Exception( 'woocommerce_api_missing_customers_data', sprintf( __( 'No %1$s data specified to create/edit %1$s', 'woocommerce' ), 'customers' ), 400 );
    			}
    
    			$data  = $data['customers'];
    			$limit = apply_filters( 'woocommerce_api_bulk_limit', 100, 'customers' );
    
    			// Limit bulk operation
    			if ( count( $data ) > $limit ) {
    				throw new WC_API_Exception( 'woocommerce_api_customers_request_entity_too_large', sprintf( __( 'Unable to accept more than %s items for this request.', 'woocommerce' ), $limit ), 413 );
    			}
    
    
  • /includes/legacy/api/v2/class-wc-api-orders.php line 1779
    				throw new WC_API_Exception( 'woocommerce_api_missing_orders_data', sprintf( __( 'No %1$s data specified to create/edit %1$s', 'woocommerce' ), 'orders' ), 400 );
    			}
    
    			$data  = $data['orders'];
    			$limit = apply_filters( 'woocommerce_api_bulk_limit', 100, 'orders' );
    
    			// Limit bulk operation
    			if ( count( $data ) > $limit ) {
    				throw new WC_API_Exception( 'woocommerce_api_orders_request_entity_too_large', sprintf( __( 'Unable to accept more than %s items for this request.', 'woocommerce' ), $limit ), 413 );
    			}
    
    
  • /includes/legacy/api/v2/class-wc-api-products.php line 2253
    				throw new WC_API_Exception( 'woocommerce_api_missing_products_data', sprintf( __( 'No %1$s data specified to create/edit %1$s', 'woocommerce' ), 'products' ), 400 );
    			}
    
    			$data  = $data['products'];
    			$limit = apply_filters( 'woocommerce_api_bulk_limit', 100, 'products' );
    
    			// Limit bulk operation
    			if ( count( $data ) > $limit ) {
    				throw new WC_API_Exception( 'woocommerce_api_products_request_entity_too_large', sprintf( __( 'Unable to accept more than %s items for this request.', 'woocommerce' ), $limit ), 413 );
    			}
    
    
  • /includes/legacy/api/v3/class-wc-api-coupons.php line 525
    				throw new WC_API_Exception( 'woocommerce_api_missing_coupons_data', sprintf( __( 'No %1$s data specified to create/edit %1$s', 'woocommerce' ), 'coupons' ), 400 );
    			}
    
    			$data  = $data['coupons'];
    			$limit = apply_filters( 'woocommerce_api_bulk_limit', 100, 'coupons' );
    
    			// Limit bulk operation
    			if ( count( $data ) > $limit ) {
    				throw new WC_API_Exception( 'woocommerce_api_coupons_request_entity_too_large', sprintf( __( 'Unable to accept more than %s items for this request.', 'woocommerce' ), $limit ), 413 );
    			}
    
    
  • /includes/legacy/api/v3/class-wc-api-customers.php line 778
    				throw new WC_API_Exception( 'woocommerce_api_missing_customers_data', sprintf( __( 'No %1$s data specified to create/edit %1$s', 'woocommerce' ), 'customers' ), 400 );
    			}
    
    			$data  = $data['customers'];
    			$limit = apply_filters( 'woocommerce_api_bulk_limit', 100, 'customers' );
    
    			// Limit bulk operation
    			if ( count( $data ) > $limit ) {
    				throw new WC_API_Exception( 'woocommerce_api_customers_request_entity_too_large', sprintf( __( 'Unable to accept more than %s items for this request.', 'woocommerce' ), $limit ), 413 );
    			}
    
    
  • /includes/legacy/api/v3/class-wc-api-orders.php line 1824
    				throw new WC_API_Exception( 'woocommerce_api_missing_orders_data', sprintf( __( 'No %1$s data specified to create/edit %1$s', 'woocommerce' ), 'orders' ), 400 );
    			}
    
    			$data  = $data['orders'];
    			$limit = apply_filters( 'woocommerce_api_bulk_limit', 100, 'orders' );
    
    			// Limit bulk operation
    			if ( count( $data ) > $limit ) {
    				throw new WC_API_Exception( 'woocommerce_api_orders_request_entity_too_large', sprintf( __( 'Unable to accept more than %s items for this request.', 'woocommerce' ), $limit ), 413 );
    			}
    
    
  • /includes/legacy/api/v3/class-wc-api-products.php line 3045
    				throw new WC_API_Exception( 'woocommerce_api_missing_products_data', sprintf( __( 'No %1$s data specified to create/edit %1$s', 'woocommerce' ), 'products' ), 400 );
    			}
    
    			$data  = $data['products'];
    			$limit = apply_filters( 'woocommerce_api_bulk_limit', 100, 'products' );
    
    			// Limit bulk operation
    			if ( count( $data ) > $limit ) {
    				throw new WC_API_Exception( 'woocommerce_api_products_request_entity_too_large', sprintf( __( 'Unable to accept more than %s items for this request.', 'woocommerce' ), $limit ), 413 );
    			}
    
    
  • /includes/legacy/api/v3/class-wc-api-taxes.php line 461
    				throw new WC_API_Exception( 'woocommerce_api_missing_taxes_data', sprintf( __( 'No %1$s data specified to create/edit %1$s', 'woocommerce' ), 'taxes' ), 400 );
    			}
    
    			$data  = $data['taxes'];
    			$limit = apply_filters( 'woocommerce_api_bulk_limit', 100, 'taxes' );
    
    			// Limit bulk operation
    			if ( count( $data ) > $limit ) {
    				throw new WC_API_Exception( 'woocommerce_api_taxes_request_entity_too_large', sprintf( __( 'Unable to accept more than %s items for this request.', 'woocommerce' ), $limit ), 413 );
    			}