woocommerce_shipping_method_supports, in_array( $feature, $this->supports
woocommerce_shipping_method_supports, in_array( $feature, $this->supports
Appears in: woocommerce.11.0.0
Hook Type: filter
Displaying hooks found in version: woocommerce.11.0.0apply_filters('woocommerce_shipping_method_supports, in_array( $feature, $this->supports') is found 1 times:
- /includes/abstracts/abstract-wc-shipping-method.php line 181
* @param string $feature The name of a feature to test support for. * @return bool True if the shipping method supports the feature, false otherwise. */ public function supports( $feature ) { return apply_filters( 'woocommerce_shipping_method_supports', in_array( $feature, $this->supports ), $feature, $this ); } /** * Called to calculate shipping rates for this method. Rates can be added using the add_rate() method. * * @param array $package Package array.