WordPress filter hook
woocommerce_shipping_show_shipping_calculator
Defined by WooCommerce and fired by 10 plugins in total, running on 7.2M+ sites between them.
How to use woocommerce_shipping_show_shipping_calculator
It's a filter: your callback receives the value and 2 more arguments, and must return the (changed) value.
Add this to your theme's functions.php or a small custom plugin:
add_filter( 'woocommerce_shipping_show_shipping_calculator', function( $first, $i, $package ) {
// Change $first here.
return $first;
}, 10, 3 );Argument names come from WooCommerce's source. Other plugins may pass different values: check the call in the plugin you're targeting below.
10 plugins that fire woocommerce_shipping_show_shipping_calculator
Sorted by active installs. Each entry shows where the plugin calls the hook and what it passes.
-
WooCommerce7+ million installs
apply_filters( 'woocommerce_shipping_show_shipping_calculator', $first, $i, $package )includes/wc-cart-functions.php:272 -
CartFlows200,000+ installs
apply_filters( 'woocommerce_shipping_show_shipping_calculator', $first, $i, $package )modules/checkout/templates/checkout/shipping-methods.php:14 -
Fluid Checkout for WooCommerce20,000+ installs
apply_filters( 'woocommerce_shipping_show_shipping_calculator', $first, $package_index, $package )inc/checkout-steps.php:8981 -
SellKit7,000+ installs
apply_filters( 'woocommerce_shipping_show_shipping_calculator', true, $index, $package )includes/block-editor/blocks/checkout/inner-blocks/cart-shipping/class.php:69 -
ThemeHunk5,000+ installs
apply_filters( 'woocommerce_shipping_show_shipping_calculator', true, 0, $package )inc/taiowc-markup.php:1145 -
WPFunnels5,000+ installs
apply_filters( 'woocommerce_shipping_show_shipping_calculator', $first, $i, $package )public/modules/checkout/templates/checkout/shipping-methods.php:14 -
Addonify Floating Cart For WooCommerce1,000+ installs
apply_filters( 'woocommerce_shipping_show_shipping_calculator', $first, $i, $package )includes/template-functions.php:359 -
Shopready100+ installs
apply_filters( 'woocommerce_shipping_show_shipping_calculator', $first, $i, $package )src/extension/elewidgets/helper/general.php:238 -
Radin app10+ installs
apply_filters( 'woocommerce_shipping_show_shipping_calculator', $first, $i, $package )includes/API/Controller/PaymentMethodControllerRadinapp.php:93 -
SKYRO Checkout for WooCommerceFewer than 10 installs
apply_filters( 'woocommerce_shipping_show_shipping_calculator', $first, $i, $package )src/FrontEnd/TemplateFiles/Credence/Credence.php:172
Need a customisation built on this hook?
Tell us what you want to change and which plugin it's for. We'll write it, test it and send it back as a small plugin.