Skip to content

Instantly share code, notes, and snippets.

@stuartduff
Created June 18, 2013 13:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save stuartduff/5805532 to your computer and use it in GitHub Desktop.
Save stuartduff/5805532 to your computer and use it in GitHub Desktop.
Change the word Products in the WooCommerce breadcrumb trail
add_filter( 'woo_breadcrumbs_trail', 'woo_custom_filter_breadcrumbs_trail', 10 );
function woo_custom_filter_breadcrumbs_trail ( $trail ) {
foreach ( $trail as $k => $v ) {
if ( strtolower( strip_tags( $v ) ) == 'products' ) {
$trail[$k] = 'Photos';
break;
}
}
return $trail;
} // End woo_custom_filter_breadcrumbs_trail()
@cameracctv247
Copy link

thank for this code, great!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment