wc_shipping_enabled filter-hookWC 1.0

Is shipping enabled?

Usage

add_filter( 'wc_shipping_enabled', 'wp_kama_wc_shipping_enabled_filter' );

/**
 * Function for `wc_shipping_enabled` filter-hook.
 * 
 * @param  $get_option() !== disabled 
 *
 * @return 
 */
function wp_kama_wc_shipping_enabled_filter( $get_option() !== disabled ){

	// filter...
	return $get_option() !== disabled;
}
$get_option() !== disabled
-

Where the hook is called

wc_shipping_enabled()
wc_shipping_enabled
woocommerce/includes/wc-conditional-functions.php 355
return apply_filters( 'wc_shipping_enabled', get_option( 'woocommerce_ship_to_countries' ) !== 'disabled' );

Where the hook is used in WooCommerce

Usage not found.