Skip to content

Instantly share code, notes, and snippets.

@woogists
Last active December 24, 2018 01:37
[Frontend Snippets][Customize the WooCommerce breadcrumb] Change the breadcrumb separator
/**
* Change the breadcrumb separator
*/
add_filter( 'woocommerce_breadcrumb_defaults', 'wcc_change_breadcrumb_delimiter' );
function wcc_change_breadcrumb_delimiter( $defaults ) {
// Change the breadcrumb delimeter from '/' to '>'
$defaults['delimiter'] = ' > ';
return $defaults;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment