AI Verified

Name

Fix Woocommerce breadcrumb

About

Change the default 'Home' link to the shop home page & rename

Language

PHP

Rating

Voted: 0 by 0 user(s)

Codevault

Gertie-Visser

Scroll down to see more snippets from this codevault.

Wordpress Compatability

The author has indicated that this snippet is compatable up to wordpress version: Not Specified

Our AI bot has checked this snippet is compatable up to wordpress version: 6.1

Code Snippet Plugin Sync

Free & Pro

Download this snippet by clicking the download button, then head over to the Code Snippet Plugin settings in your wordpress admin dashboard, select the import menu then upload this file to import into your wordpress site.

Pro Only (Coming Soon)

You will be able to click a button and sync this snippet to your wordpress site automatically and from your dashboard manage all code snippets across all your wordpress sites that have the Code Snippets Pro plugin installed.

History

Last modified:

22/07/2024

Important Note

This snippet has the following status:

AI Verified

This snippet has been tested by our AI bot, see any comments below.

AI Bot Comments:

Found 0 vulnerabilities

Fix Woocommerce breadcrumb

 
                    
1function by_woo_shop_home_name( $defaults ) {
2 $defaults['home'] = 'Shop Home';
3 return $defaults;
4}
5 
6add_filter( 'woocommerce_breadcrumb_defaults', 'by_woo_shop_home_name');
7 
8function by_woo_shop_url() {
9 // return get_permalink(50);
10 return get_permalink( wc_get_page_id( 'shop' ));
11}
12add_filter( 'woocommerce_breadcrumb_home_url', 'by_woo_shop_url' );

0

Related Snippets

Please see some snippets below related to this snippet..

General

Unverified

0

Read CSV file without customDelimiter

Added: 8 months ago

Last Updated: 8 months ago

General

AI Verified

1

Enable Fluent Forms login form capability

Added: 2 years ago

Last Updated: 1 year ago

Fluent forms does not allow the creation of a login form natively at the time of writing. However, this snippet enables that function.

General

AI Verified

0

Friends Deactivate Plugin Cache

Added: 3 months ago

Last Updated: 3 months ago

Typically the Friends plugin will cache the plugin info for an hour. This disables it.

Other Snippets in this Codevault

These are some popular snippets from this users codevault..

WooCommerce

AI Verified

0

Change tekst add to cart woocommerce to Offerte

Added: 2 months ago

Last Updated: 2 months ago

Changes tekst "add to cart" woocommerce to "Offerte".

General

AI Verified

0

Change tekst add to cart woocommerce to Offerte

Added: 2 months ago

Last Updated: 2 months ago

Changes tekst "add to cart" woocommerce to "Offerte".

General

AI Verified

0

Change view cart tekst to offerte aanvragen.

Added: 2 months ago

Last Updated: 2 months ago

Changes view cart tekst to offerte aanvragen.