woocommerce_shipping_(id)_is_available filter-hookWC 1.0

Usage

add_filter( 'woocommerce_shipping_(id)_is_available', 'wp_kama_woocommerce_shipping_id_is_available_filter', 10, 3 );

/**
 * Function for `woocommerce_shipping_(id)_is_available` filter-hook.
 * 
 * @param  $is_available 
 * @param  $package      
 * @param  $that         
 *
 * @return 
 */
function wp_kama_woocommerce_shipping_id_is_available_filter( $is_available, $package, $that ){

	// filter...
	return $is_available;
}
$is_available
-
$package
-
$that
-

Where the hook is called

WC_Shipping_Legacy_Free_Shipping::is_available()
woocommerce_shipping_(id)_is_available
WC_Shipping_Legacy_International_Delivery::is_available()
woocommerce_shipping_(id)_is_available
WC_Shipping_Free_Shipping::is_available()
woocommerce_shipping_(id)_is_available
WC_Shipping_Legacy_Local_Pickup::is_available()
woocommerce_shipping_(id)_is_available
WC_Shipping_Method::is_available()
woocommerce_shipping_(id)_is_available
woocommerce/includes/shipping/legacy-free-shipping/class-wc-shipping-legacy-free-shipping.php 234
return apply_filters( 'woocommerce_shipping_' . $this->id . '_is_available', $is_available, $package, $this );
woocommerce/includes/shipping/legacy-international-delivery/class-wc-shipping-legacy-international-delivery.php 83
return apply_filters( 'woocommerce_shipping_' . $this->id . '_is_available', true, $package, $this );
woocommerce/includes/shipping/free-shipping/class-wc-shipping-free-shipping.php 189
return apply_filters( 'woocommerce_shipping_' . $this->id . '_is_available', $is_available, $package, $this );
woocommerce/includes/shipping/legacy-local-pickup/class-wc-shipping-legacy-local-pickup.php 219
return apply_filters( 'woocommerce_shipping_' . $this->id . '_is_available', $is_available, $package, $this );
woocommerce/includes/abstracts/abstract-wc-shipping-method.php 398
return apply_filters( 'woocommerce_shipping_' . $this->id . '_is_available', $available, $package, $this );

Where the hook is used in WooCommerce

Usage not found.