WC_Coupon::get_status
Get coupon status.
Method of the class: WC_Coupon{}
No Hooks.
Returns
String.
Usage
$WC_Coupon = new WC_Coupon(); $WC_Coupon->get_status( $context );
- $context(string)
- What the value is for. Valid values are
'view'and'edit'.
Default:'view'
Changelog
| Since 6.2.0 | Introduced. |
WC_Coupon::get_status() WC Coupon::get status code WC 10.5.0
public function get_status( $context = 'view' ) {
return $this->get_prop( 'status', $context );
}