WC_Shipping_Method::is_enabled
Whether or not this method is enabled in settings.
Method of the class: WC_Shipping_Method{}
No Hooks.
Returns
true|false.
Usage
$WC_Shipping_Method = new WC_Shipping_Method(); $WC_Shipping_Method->is_enabled();
Changelog
| Since 2.6.0 | Introduced. |
WC_Shipping_Method::is_enabled() WC Shipping Method::is enabled code WC 10.3.6
public function is_enabled() {
return 'yes' === $this->enabled;
}