WC_Coupon::set_status()publicWC 3.0.0

Set coupon status.

Method of the class: WC_Coupon{}

No Hooks.

Return

null. Nothing (null).

Usage

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

Changelog

Since 3.0.0 Introduced.

WC_Coupon::set_status() code WC 8.6.1

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