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:

functions.php
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.

  1. WooCommerce icon WooCommerce7+ million installs apply_filters( 'woocommerce_shipping_show_shipping_calculator', $first, $i, $package ) includes/wc-cart-functions.php:272
  2. CartFlows icon CartFlows200,000+ installs apply_filters( 'woocommerce_shipping_show_shipping_calculator', $first, $i, $package ) modules/checkout/templates/checkout/shipping-methods.php:14
  3. Fluid Checkout for WooCommerce icon Fluid Checkout for WooCommerce20,000+ installs apply_filters( 'woocommerce_shipping_show_shipping_calculator', $first, $package_index, $package ) inc/checkout-steps.php:8981
  4. SellKit icon 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
  5. ThemeHunk icon ThemeHunk5,000+ installs apply_filters( 'woocommerce_shipping_show_shipping_calculator', true, 0, $package ) inc/taiowc-markup.php:1145
  6. WPFunnels icon WPFunnels5,000+ installs apply_filters( 'woocommerce_shipping_show_shipping_calculator', $first, $i, $package ) public/modules/checkout/templates/checkout/shipping-methods.php:14
  7. Addonify Floating Cart For WooCommerce icon Addonify Floating Cart For WooCommerce1,000+ installs apply_filters( 'woocommerce_shipping_show_shipping_calculator', $first, $i, $package ) includes/template-functions.php:359
  8. Shopready icon Shopready100+ installs apply_filters( 'woocommerce_shipping_show_shipping_calculator', $first, $i, $package ) src/extension/elewidgets/helper/general.php:238
  9. Radin app icon Radin app10+ installs apply_filters( 'woocommerce_shipping_show_shipping_calculator', $first, $i, $package ) includes/API/Controller/PaymentMethodControllerRadinapp.php:93
  10. SKYRO Checkout for WooCommerce icon 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.