Skip to content

Instantly share code, notes, and snippets.

@wbcomdev
Created May 14, 2021 05:14
Show Gist options
  • Select an option

  • Save wbcomdev/6b17eddeb59ef8ec35ad715f0a93ec0b to your computer and use it in GitHub Desktop.

Select an option

Save wbcomdev/6b17eddeb59ef8ec35ad715f0a93ec0b to your computer and use it in GitHub Desktop.
/**
* Change the breadcrumb separator.
*/
function wb_wc_change_breadcrumb_delimiter( $defaults ) {
// Change the breadcrumb delimeter from '/' to '>'
$defaults['delimiter'] = ' > ';
return $defaults;
}
add_filter( 'woocommerce_breadcrumb_defaults', 'wb_wc_change_breadcrumb_delimiter' );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment