WooCommerce : Change the WooCommerce Breadcrumb Text.


WooCommerce is the more powerful e-commerce plugin for WordPress.And what i love with WooCommerce is that there’s an API for nearly everything.There are almost Hooks and filters For Every Customization work.

To change the WooCommerce breadcrumb text, you could use the following filter:

For example Change “home” to “Products” in WooCommerce breadcrumbs:

function woocommerce_change_breadcrumb_text( $bread ) {
$bread['home'] = 'Products';
return $bread;
}

add_filter( ‘woocommerce_breadcrumb_defaults’, ‘woocommerce_change_breadcrumb_text’ );

Enjoy

, ,

Leave a Reply

Your email address will not be published. Required fields are marked *