WordPress filter hook

woocommerce_ship_to_different_address_checked

Defined by WooCommerce and fired by 39 plugins in total, running on 8.4M+ sites between them.

How to use woocommerce_ship_to_different_address_checked

It's a filter: your callback receives the value, and must return the (changed) value. Add this to your theme's functions.php or a small custom plugin:

functions.php
add_filter( 'woocommerce_ship_to_different_address_checked', function( $value ) {
	// Change $value here.
	return $value;
}, 10, 1 );

Argument names come from WooCommerce's source. Other plugins may pass different values: check the call in the plugin you're targeting below.

39 plugins that fire woocommerce_ship_to_different_address_checked

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_ship_to_different_address_checked', 'shipping' === get_option( 'woocommerce_ship_to_destination' ) ? 1 : 0 ) templates/checkout/form-shipping.php:26
  2. Essential Addons for Elementor icon Essential Addons for Elementor1+ million installs apply_filters( 'woocommerce_ship_to_different_address_checked', 'shipping' === get_option( 'woocommerce_ship_to_destination' ) ? 1 : 0 ) includes/Template/Woocommerce/Checkout/Woo_Checkout_Helper.php:693
  3. CartFlows icon CartFlows200,000+ installs apply_filters( 'woocommerce_ship_to_different_address_checked', 'shipping' === get_option( 'woocommerce_ship_to_destination' ) ? 1 : 0 ) woocommerce/template/checkout/form-shipping.php:30
  4. ShopEngine icon ShopEngine90,000+ installs apply_filters( 'woocommerce_ship_to_different_address_checked', 'shipping' === get_option('woocommerce_ship_to_destination') ? 1 : 0 ) widgets/checkout-form-shipping/screens/default.php:43
  5. ShopLentor icon ShopLentor80,000+ installs apply_filters( 'woocommerce_ship_to_different_address_checked', 'shipping' === get_option( 'woocommerce_ship_to_destination' ) ? 1 : 0 ) includes/modules/shopify-like-checkout/includes/templates/form-shipping.php:15
  6. Price Based on Country for WooCommerce icon Price Based on Country for WooCommerce20,000+ installs apply_filters( 'woocommerce_ship_to_different_address_checked', get_option( 'woocommerce_ship_to_destination' ) === 'shipping' ? 1 : 0 ) includes/wcpbc-core-functions.php:92
  7. ShopBuilder icon ShopBuilder10,000+ installs apply_filters( 'woocommerce_ship_to_different_address_checked', 'shipping' === get_option( 'woocommerce_ship_to_destination' ) ? 1 : 0 ) templates/elementor/checkout/shipping-form.php:29
  8. Youzify icon Youzify5,000+ installs apply_filters( 'woocommerce_ship_to_different_address_checked', 'shipping' === get_option( 'woocommerce_ship_to_destination' ) ? 1 : 0 ) includes/public/templates/members/single/woocommerce/checkout/form-shipping.php:29
  9. WowStore icon WowStore4,000+ installs apply_filters( 'woocommerce_ship_to_different_address_checked', 'shipping' === get_option( 'woocommerce_ship_to_destination' ) ? 1 : 0 ) blocks/woo/checkout/shipping/Template.php:15
  10. Ultimate Store Kit icon Ultimate Store Kit3,000+ installs apply_filters( 'woocommerce_ship_to_different_address_checked', 'shipping' === get_option('woocommerce_ship_to_destination') ? 1 : 0 ) modules/page-checkout/widgets/page-checkout.php:980
  11. Responsive Addons for Elementor icon Responsive Addons for Elementor3,000+ installs apply_filters( 'woocommerce_ship_to_different_address_checked', 'shipping' === get_option( 'woocommerce_ship_to_destination' ) ? 1 : 0 ) traits/responsive-addons-for-elementor-woo-checkout-helper.php:888
  12. One page checkout and layouts for woocommerce icon One page checkout and layouts for woocommerce3,000+ installs apply_filters( 'woocommerce_ship_to_different_address_checked', 'shipping' === get_option( 'woocommerce_ship_to_destination' ) ? 1 : 0 ) WooCommerce/checkout/form-shipping.php:26
  13. ShopEngine Gutenberg WooCommerce Builder Blocks Addon icon ShopEngine Gutenberg WooCommerce Builder Blocks Addon3,000+ installs apply_filters( 'woocommerce_ship_to_different_address_checked', 'shipping' === get_option('woocommerce_ship_to_destination') ? 1 : 0 ) blocks/checkout-form-shipping/screen.php:34
  14. Product page shipping calculator for WooCommerce icon Product page shipping calculator for WooCommerce1,000+ installs apply_filters( 'woocommerce_ship_to_different_address_checked', 'shipping' === get_option( 'woocommerce_ship_to_destination' ) ? 1 : 0 ) public/class-rset-logedin-customer-address.php:13
  15. ShopPress icon ShopPress600+ installs apply_filters( 'woocommerce_ship_to_different_address_checked', 'shipping' === get_option( 'woocommerce_ship_to_destination' ) ? 1 : 0 ) public/templates/checkout/checkout-shipping-form.php:32
  16. StoreBuild icon StoreBuild400+ installs apply_filters( 'woocommerce_ship_to_different_address_checked', 'shipping' === get_option( 'woocommerce_ship_to_destination' ) ? 1 : 0 ) public/woocommerce/checkout/form-shipping.php:30
  17. Noah Shop Builder for WooCommerce icon Noah Shop Builder for WooCommerce300+ installs apply_filters( 'woocommerce_ship_to_different_address_checked', 'shipping' === get_option( 'woocommerce_ship_to_destination' ) ? 1 : 0 ) includes/Blocks/CheckoutAddress.php:110
  18. Postcodes4U Address Finder icon Postcodes4U Address Finder300+ installs apply_filters( 'woocommerce_ship_to_different_address_checked', 'shipping' === get_option( 'woocommerce_ship_to_destination' ) ? 1 : 0 ) woocommerce/checkout/form-shipping.php:37
  19. FoodBook Lite icon FoodBook Lite300+ installs apply_filters( 'woocommerce_ship_to_different_address_checked', 'shipping' === get_option( 'woocommerce_ship_to_destination' ) ? 1 : 0 ) template/woocommerce/checkout/form-shipping.php:25
  20. KiriminAja Official icon KiriminAja Official200+ installs apply_filters( 'woocommerce_ship_to_different_address_checked', 'shipping' === get_option( 'woocommerce_ship_to_destination' ) ? 1 : 0 ) templates/woocommerce/checkout/form-shipping.php:26
  21. ShopMaker icon ShopMaker90+ installs apply_filters( 'woocommerce_ship_to_different_address_checked', 'shipping' === get_option( 'woocommerce_ship_to_destination' ) ? 1 : 0 ) templates/widgets/checkout/form-shipping.php:31
  22. Product Page Customizer for WooCommerce icon Product Page Customizer for WooCommerce60+ installs apply_filters( 'woocommerce_ship_to_different_address_checked', 'shipping' === get_option( 'woocommerce_ship_to_destination' ) ? 1 : 0 ) frontend/Enable-Quick-Checkout/templates/checkout/quick-checkout-form-shipping.php:33
  23. Checkout Custom Fields Builder for WooCommerce icon Checkout Custom Fields Builder for WooCommerce30+ installs apply_filters( 'woocommerce_ship_to_different_address_checked', 'shipping' === get_option( 'woocommerce_ship_to_destination' ) ? 1 : 0 ) templates/frontend/checkout/form-billing.php:42
  24. One Page Checkout for WooCommerce icon One Page Checkout for WooCommerce30+ installs apply_filters( 'woocommerce_ship_to_different_address_checked', 'shipping' === get_option( 'woocommerce_ship_to_destination' ) ? 1 : 0 ) public/templates/checkout/form-shipping.php:26
  25. ShipBG for WooCommerce icon ShipBG for WooCommerce10+ installs apply_filters( 'woocommerce_ship_to_different_address_checked', 'shipping' === \get_option( 'woocommerce_ship_to_destination' ) ) src/Shipping/OptimizedFieldsMutator.php:251
  26. Max Elements for Elementor icon Max Elements for Elementor10+ installs apply_filters( 'woocommerce_ship_to_different_address_checked', 'shipping' === get_option('woocommerce_ship_to_destination') ? 1 : 0 ) elementor/helpers/woo_checkout.php:684
  27. WPC icon WPC10+ installs apply_filters( 'woocommerce_ship_to_different_address_checked', 'shipping' === get_option( 'woocommerce_ship_to_destination' ) ? 1 : 0 ) app/inc/Addons/wpc-onepage-checkout/templates/checkout/form-shipping.php:17
  28. YayCheckout icon YayCheckoutFewer than 10 installs apply_filters( 'woocommerce_ship_to_different_address_checked', 0 ) assets/dist/blocks/different-address/render.php:40
  29. VIMA icon VIMAFewer than 10 installs apply_filters( 'woocommerce_ship_to_different_address_checked', 'shipping' === get_option( 'woocommerce_ship_to_destination' ) ? 1 : 0 ) templates/checkout/form-shipping.php:34
  30. Cresta Checkout for WooCommerce icon Cresta Checkout for WooCommerceFewer than 10 installs apply_filters( 'woocommerce_ship_to_different_address_checked', 'shipping' === get_option( 'woocommerce_ship_to_destination' ) ? 1 : 0 ) templates/wc/checkout/form-shipping.php:20
  31. MCOD Minimalist Checkout for WooCommerce icon MCOD Minimalist Checkout for WooCommerceFewer than 10 installs apply_filters( 'woocommerce_ship_to_different_address_checked', 'shipping' === get_option( 'woocommerce_ship_to_destination' ) ? 1 : 0 ) templates/woocommerce/checkout/form-shipping.php:23
  32. SuperPlus icon SuperPlusFewer than 10 installs apply_filters( 'woocommerce_ship_to_different_address_checked', 'shipping' === get_option('woocommerce_ship_to_destination') ? 1 : 0 ) includes/modules/checkout-steps/class-sp-wsv-module-checkout-steps.php:2227
  33. SKYRO Checkout for WooCommerce icon SKYRO Checkout for WooCommerceFewer than 10 installs apply_filters( 'woocommerce_ship_to_different_address_checked', 'shipping' === get_option( 'woocommerce_ship_to_destination' ) ? 1 : 0 ) src/FrontEnd/TemplateFiles/TemplateParts/form-shipping.php:29
  34. Comet LevelUp for WooCommerce icon Comet LevelUp for WooCommerceFewer than 10 installs apply_filters( 'woocommerce_ship_to_different_address_checked', true ) includes/LiveTests/test_uncheck_ship_different.php:24
  35. Xcodesol Shop Builder icon Xcodesol Shop BuilderFewer than 10 installs apply_filters( 'woocommerce_ship_to_different_address_checked', 'shipping' === get_option( 'woocommerce_ship_to_destination' ) ? 1 : 0 ) blocks/page/cc-checkout-parts.php:78
  36. Zamzam Chat Order for WooCommerce icon Zamzam Chat Order for WooCommerceFewer than 10 installs apply_filters( 'woocommerce_ship_to_different_address_checked', 'shipping' === get_option( 'woocommerce_ship_to_destination' ) ? 1 : 0 ) includes/Frontend/class-checkout-handler.php:166
  37. Product Page Shipping for WooCommerce icon Product Page Shipping for WooCommerceFewer than 10 installs apply_filters( 'woocommerce_ship_to_different_address_checked', 'shipping' === get_option( 'woocommerce_ship_to_destination' ) ? 1 : 0 ) templates/checkout/form-shipping.php:26
  38. ithan devvn checkout for woocommerce icon ithan devvn checkout for woocommerceFewer than 10 installs apply_filters( 'woocommerce_ship_to_different_address_checked', 'shipping' === get_option( 'woocommerce_ship_to_destination' ) ? 1 : 0 ) templates/checkout/form-shipping.php:13
  39. Bazario icon BazarioFewer than 10 installs apply_filters( 'woocommerce_ship_to_different_address_checked', 'shipping' === get_option('woocommerce_ship_to_destination') ? 1 : 0 ) elements/widgets/checkout-form-shipping/checkout-form-shipping.php:758

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.