woocommerce_shipping_method_supports хук-фильтрWC 1.0

Check if a shipping method supports a given feature.

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

Использование

add_filter( 'woocommerce_shipping_method_supports', 'wp_kama_woocommerce_shipping_method_supports_filter', 10, 2 );

/**
 * Function for `woocommerce_shipping_method_supports` filter-hook.
 * 
 * @param  $feature 
 * @param  $that    
 *
 * @return 
 */
function wp_kama_woocommerce_shipping_method_supports_filter( $feature, $that ){

	// filter...
	return $feature;
}
$feature
-
$that
-

Где вызывается хук

WC_Shipping_Method::supports()
woocommerce_shipping_method_supports
woocommerce/includes/abstracts/abstract-wc-shipping-method.php 155
return apply_filters( 'woocommerce_shipping_method_supports', in_array( $feature, $this->supports ), $feature, $this );

Где используется хук в WooCommerce

Использование не найдено.