WC_Breadcrumb::add_crumbs_product_tag()
Product tag trail.
{} It's a method of the class: WC_Breadcrumb{}
No Hooks.
Return
null
. Nothing.
Usage
// protected - for code of main (parent) or child class $result = $this->add_crumbs_product_tag();
Code of WC_Breadcrumb::add_crumbs_product_tag() WC Breadcrumb::add crumbs product tag WC 6.7.0
protected function add_crumbs_product_tag() { $current_term = $GLOBALS['wp_query']->get_queried_object(); $this->prepend_shop_page(); /* translators: %s: product tag */ $this->add_crumb( sprintf( __( 'Products tagged “%s”', 'woocommerce' ), $current_term->name ), get_term_link( $current_term, 'product_tag' ) ); }