woocommerce_api_bulk_limit

woocommerce_api_bulk_limit

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

See hook in core

Displaying hooks found in version: woocommerce.8.9.3

apply_filters('woocommerce_api_bulk_limit') is found 9 times:

  • /includes/legacy/api/v2/class-wc-api-coupons.php line 525
    521
    522
    523
    524
    525
    526
    527
    528
    529
    530
        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
    784
    785
    786
    787
    788
    789
    790
    791
    792
    793
        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
    1775
    1776
    1777
    1778
    1779
    1780
    1781
    1782
    1783
    1784
        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
    2249
    2250
    2251
    2252
    2253
    2254
    2255
    2256
    2257
    2258
        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
    521
    522
    523
    524
    525
    526
    527
    528
    529
    530
        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
    774
    775
    776
    777
    778
    779
    780
    781
    782
    783
        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
    1820
    1821
    1822
    1823
    1824
    1825
    1826
    1827
    1828
    1829
        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
    3041
    3042
    3043
    3044
    3045
    3046
    3047
    3048
    3049
    3050
        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
    457
    458
    459
    460
    461
    462
    463
    464
    465
    466
        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 );
    }