WordPress at Your Fingertips
function is not described

WC_Shipping_Method::is_enabled() public WC 2.6.0

Whether or not this method is enabled in settings.

{} It's a method of the class: WC_Shipping_Method{}

No Hooks.

Return

true|false.

Usage

$WC_Shipping_Method = new WC_Shipping_Method();
$WC_Shipping_Method->is_enabled();

Changelog

Since 2.6.0 Introduced.

Code of WC_Shipping_Method::is_enabled() WC 5.8.0

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