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.
Return Return
(bool) True if the shipping method supports the feature, false otherwise.
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 ); }