WordPress filter hook

woocommerce_breadcrumb_home_url

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

“Filters the Home breadcrumb URL.”

How to use woocommerce_breadcrumb_home_url

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_breadcrumb_home_url', function( $default_home_url ) {
	// Change $default_home_url here.
	return $default_home_url;
}, 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.

5 plugins that fire woocommerce_breadcrumb_home_url

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_breadcrumb_home_url', $default_home_url ) src/Blocks/CoreBreadcrumbsCompatibility.php:198
  2. ThemeREX eCommerce Extensions for Elementor icon ThemeREX eCommerce Extensions for Elementor900+ installs apply_filters( 'woocommerce_breadcrumb_home_url', $home_url ) core/modules/widgets/product-breadcrumbs/product-breadcrumbs-elementor-widget.php:362
  3. Funtionalities for Alpus theme icon Funtionalities for Alpus theme100+ installs apply_filters( 'woocommerce_breadcrumb_home_url', home_url() ) framework/addons/breadcrumb/class-alpus-breadcrumb.php:122
  4. Recomaze icon Recomaze10+ installs apply_filters( 'woocommerce_breadcrumb_home_url', home_url() ) includes/seo/frontend/Recomaze_Seo_Breadcrumbs.php:207
  5. Single Page Shopping icon Single Page ShoppingFewer than 10 installs apply_filters( 'woocommerce_breadcrumb_home_url', home_url() ) includes/awcs-common-functions.php:72

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.