WC_Coupon::set_status()publicWC 3.0.0

Set coupon status.

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

No Hooks.

Return

null. Nothing.

Usage

$WC_Coupon = new WC_Coupon();
$WC_Coupon->set_status( $status );
$status(string) (required)
Status.

Changelog

Since 3.0.0 Introduced.

Code of WC_Coupon::set_status() WC 6.7.0

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