WC_Coupon::set_status
Set coupon status.
Method of the class: WC_Coupon{}
No Hooks.
Returns
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() WC Coupon::set status code WC 10.5.0
public function set_status( $status ) {
$this->set_prop( 'status', $status );
}