freer4
701d92233c
Allow extension of WC_Breadcrumb class
...
Changing the private class methods to protected allows extending the class to work with the built-in functionality.
The desired effect - removing the "Shop" crumb - was not possible with the few filters available interspersed in this class.
After much hair-pulling over the simple task of excluding one breadcrumb and the stubborn refusal to copy-pasta the entire class into my theme, I choose to extend the WC_Breadcrumb class to override the already-public add_crumb method. Without access to the other methods on the class, this was futile.
There are several asks around the web for removing or updating the breadcrumbs. The accepted answer to these appears to be to "just hide it with CSS" which is a poor workaround.
2019-03-17 02:43:00 -04:00
Mike Jolley
377d79e175
Merge branch 'fix/21830'
2019-02-13 14:45:00 +00:00
Gerhard
cd36919265
PHPCS fixes
2019-02-11 10:22:30 +02:00
Gerhard
2d746a99bb
Use name instead of singular_name for archive pages breadcrumbs. singular_name should only be used on single pages.
2019-02-11 10:21:17 +02:00
Ron Rennick
8e18d05634
phpcs sniff fixes for class-wc-breadcrumb.php
2019-01-28 11:30:11 -04:00
Ron Rennick
db2bc48849
don't force shop loop display mode to products when query page >1
2019-01-28 11:23:25 -04:00
claudiulodro
52e272c807
Add breadcrumb links for product categories and tags
2018-09-05 13:32:53 -07:00
claudiulodro
1afde50ed6
Generate URLs for singles in structured data
2018-09-04 13:36:10 -07:00
Claudio Sanches
8d860d7fb3
Fixed includes/class-wc-breadcrumb.php PHPCS violations
2018-03-15 18:30:08 -03:00
Mike Jolley
5330d0b860
Make terms logic match for breadcrumb and widget
2018-02-20 11:49:06 +00:00
Mike Jolley
613adb0c07
Post types with no archives should not show in breadcrumb.
2018-01-04 12:09:11 +00:00
Mike Jolley
3aee17faeb
Fix breadcrumbs for regular categories
...
Closes #16455
2017-08-16 11:22:22 +01:00
Rasmus Bengtsson
185934fad9
Fix phpdoc to include params and correct types
2017-05-15 13:50:52 +02:00
Mike Jolley
09f2c6b89a
Add locale independent wc_get_permalink_structure function
2017-02-07 16:16:45 +00:00
Aristeides Stathopoulos
ec8a0b288b
PHPCS: WordPress.Arrays.ArrayDeclaration.NoCommaAfterLast
2016-08-27 05:08:49 +03:00
opportus
43af0aae86
fixes #11588 - revision1
2016-08-02 05:27:30 +02:00
opportus
1caa1e09f4
fixes #11588
2016-08-02 02:20:50 +02:00
Mike Jolley
734bde83f9
Strip tags in cart messages and breadcrumbs
...
Fixes #10074
2016-01-15 09:59:04 +00:00
Caleb Burks
f53b9924c6
Fix breadcrumbs for taxonomies
2015-12-01 01:31:11 -06:00
Fredrik Forsmo
3440985a8a
Check so `product_base` exists before using it
...
`product_base` index in `$permalinks` array in `prepend_shop_page` method don't always exists for a new WooCommerce site, doing a isset check before will solve `Notice: Undefined index: product_base` error.
2015-11-11 19:44:23 +01:00
Claudio Sanches
ee30b5b308
Fixed php docs standards
2015-11-03 11:31:20 -02:00
Claudio Sanches
893d0e40da
Include attribute archives support in the breadcrumbs
2015-08-13 16:02:57 -03:00
Mike Jolley
899952e478
woocommerce_get_breadcrumb filter in class
...
Closes #7644
2015-03-09 10:17:39 +00:00
Gregory Karpinsky
9b28fa95c1
get_the_title( $shop_page ) instead of $shop_page->post_title
...
to apply filters
2015-03-06 15:11:23 -05:00
John Russell
112a01e54d
Altered naming convention
2015-02-20 18:17:03 -07:00
John Russell
f9db9eac77
Allow filter for breadcrumb terms
...
In some cases we may want to specify a primary term for breadcrumbs. This change would allow that to be done via a filter.
2015-02-20 17:57:25 -07:00
Mike Jolley
fb5290db2e
Fix breadcrumb on shop page
2015-02-18 12:53:39 +00:00
Mike Jolley
bd11f51d04
Double shop page in breadcrumb and white space issues.
...
Fixes #7432
2015-02-16 16:21:48 +00:00
Mike Jolley
133e85560f
Dead var
2015-02-03 15:08:54 +00:00
Scrutinizer Auto-Fixer
19f660171e
Scrutinizer Auto-Fixes
...
This commit consists of patches automatically generated for this project on https://scrutinizer-ci.com
2015-01-23 14:37:20 +00:00
Claudio Sanches
010e8ff763
Fixed the breadcrumbs class to works with attachments
2015-01-05 14:19:00 -02:00
boohoogal
efee85557c
Fix for breadcrumbs for pages #6989
2014-12-21 05:21:19 +00:00
Mike Jolley
508bfd5c06
Merge branch 'breadcrumbs-class'
...
Adds endpoint page titles for #5522
Fixes link back to endpoint pages and closes #6638
Avoids need for breadcrumb fix which closes #6834
Removes the need and closes #6834
Fixes #6840
2014-12-05 13:42:19 +00:00