WordPress at Your Fingertips
function is not described

WC_Product::set_status() public WC 3.0.0

Set product status.

{} It's a method of the class: WC_Product{}

No Hooks.

Return

null. Nothing.

Usage

$WC_Product = new WC_Product();
$WC_Product->set_status( $status );
$status(string) (required)
Product status.

Changelog

Since 3.0.0 Introduced.

Code of WC_Product::set_status() WC 5.8.0

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