Last active
December 15, 2021 02:12
-
-
Save woogists/2afaeca7ff858e7338825ce4d8c16e70 to your computer and use it in GitHub Desktop.
[Frontend Snippets][Customize the WooCommerce breadcrumb] Change the home link to a different URL
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Replace the home link URL | |
*/ | |
add_filter( 'woocommerce_breadcrumb_home_url', 'woo_custom_breadrumb_home_url' ); | |
function woo_custom_breadrumb_home_url() { | |
return 'http://woocommerce.com'; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment