WC_Product::set_status()publicWC 3.0.0

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() code WC 8.7.0

public function set_status( $status ) {
	$this->set_prop( 'status', $status );
}