Last active
January 3, 2021 19:02
-
-
Save techmuzz/53e259acdb2e2df7bda12df107af5ad8 to your computer and use it in GitHub Desktop.
Add a new BreadCrumb Into WooCommerce BreadCrumbs - https://techmuzz.com/how-to/wordpress/customize-woocommerce-breadcrumb/
This file contains hidden or 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
add_filter('woocommerce_get_breadcrumb', 'addNewBreadcrumb'); | |
function addNewBreadcrumb($crumbs) | |
{ | |
array_splice($crumbs, 1, 0, [[__('New BreadCrumb'), home_url('/newbreadcrumb/')]]); | |
return $crumbs; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment