- get_endpoint_title now takes an extra `action` param
- this also is passed to the relevant hook (as an additional arg)
- woocommerce_endpoint_{$endpoint}_title
- for `lost-password?action=rp`, use `Set password`
- pass action query param through when using get_endpoint_title
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.
`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.
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#6834Fixes#6840