WC_Product_External::set_backorders( string $backorders )
External products cannot be backordered.
Description Description
Parameters Parameters
- $backorders
-
(Required) Options: 'yes', 'no' or 'notify'.
Source Source
File: includes/class-wc-product-external.php
public function set_backorders( $backorders ) { $this->set_prop( 'backorders', 'no' ); if ( 'no' !== $backorders ) { $this->error( 'product_external_invalid_backorders', __( 'External products cannot be backordered.', 'woocommerce' ) ); } }
Changelog Changelog
Version | Description |
---|---|
3.0.0 | Introduced. |