WC_Shipping_Method::is_enabled │ public │ WC 2.6.0

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 11.3.0

public function is_enabled() {
	return 'yes' === $this->enabled;
}