WC_Coupon::set_status │ public │ WC 6.2.0

Set coupon status.

Method of the class: WC_Coupon{}

No Hooks.

Returns

void. Nothing (null).

Usage

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

Changelog

Since 6.2.0 Introduced.

WC_Coupon::set_status() code WC 11.3.0

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