WC_Shipping_Method::supports( string $feature )

Check if a shipping method supports a given feature.


Description Description

Methods should override this to declare support (or lack of support) for a feature.


Parameters Parameters

$feature

(Required) The name of a feature to test support for.


Top ↑

Return Return

(bool) True if the shipping method supports the feature, false otherwise.


Top ↑

Source Source

File: includes/abstracts/abstract-wc-shipping-method.php

	public function supports( $feature ) {
		return apply_filters( 'woocommerce_shipping_method_supports', in_array( $feature, $this->supports ), $feature, $this );
	}


Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.