3538d02ca9
The WooCommerce default is to validate stock quantity as integer, however some users find it useful to override this to allow any float quantity, eg: ```php remove_filter('woocommerce_stock_amount', 'intval'); add_filter( 'woocommerce_stock_amount', 'floatval' ); ``` Currently the API forces stock quantities to integer, this change will allow decimal quantities. |
||
---|---|---|
.. | ||
v1 | ||
class-wc-api-authentication.php | ||
class-wc-api-coupons.php | ||
class-wc-api-customers.php | ||
class-wc-api-exception.php | ||
class-wc-api-json-handler.php | ||
class-wc-api-orders.php | ||
class-wc-api-products.php | ||
class-wc-api-reports.php | ||
class-wc-api-resource.php | ||
class-wc-api-server.php | ||
class-wc-api-webhooks.php | ||
interface-wc-api-handler.php |