WC_Shipping_Method::is_enabled
Whether or not this method is enabled in settings.
Метод класса: WC_Shipping_Method{}
Хуков нет.
Возвращает
boolean.
Использование
$WC_Shipping_Method = new WC_Shipping_Method(); $WC_Shipping_Method->is_enabled();
Список изменений
| С версии 2.6.0 | Введена. |
Код WC_Shipping_Method::is_enabled() WC Shipping Method::is enabled WC 11.3.0
public function is_enabled() {
return 'yes' === $this->enabled;
}