WC_Coupon::get_status()
Get coupon status.
Метод класса: WC_Coupon{}
Хуков нет.
Возвращает
Строку
.
Использование
$WC_Coupon = new WC_Coupon(); $WC_Coupon->get_status( $context );
- $context(строка)
- What the value is for. Valid values are 'view' and 'edit'.
По умолчанию: 'view'
Список изменений
С версии 6.2.0 | Введена. |
Код WC_Coupon::get_status() WC Coupon::get status WC 9.8.1
public function get_status( $context = 'view' ) { return $this->get_prop( 'status', $context ); }