WC_Product::set_status()
Set product status.
Method of the class: WC_Product{}
No Hooks.
Return
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 9.7.1
public function set_status( $status ) { $this->set_prop( 'status', $status ); }