WC_Product::set_status
Set product status.
Method of the class: WC_Product{}
No Hooks.
Returns
null. Nothing (null).
Usage
$WC_Product = new WC_Product(); $WC_Product->set_status( $status );
- $status(string) (required)
- Product status.
Changelog
| Since 3.0.0 | Introduced. |
WC_Product::set_status() WC Product::set status code WC 10.6.2
public function set_status( $status ) {
$this->set_prop( 'status', $status );
}