woocommerce_shipping_method_supports

woocommerce_shipping_method_supports

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: filter

See hook in core

Displaying hooks found in version: woocommerce.9.8.1

apply_filters('woocommerce_shipping_method_supports') is found 1 times:

  • /includes/abstracts/abstract-wc-shipping-method.php line 181
    177
    178
    179
    180
    181
    182
    183
    184
    185
    186
    187
    * @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.