ASTRA_Ext_WooCommerce_Markup::custom_woocommerce_layered_nav_term_html( string $term_html, object $term, string $link, integer $count )

Woocommerce layered nav term html.


Description


Parameters

$term_html

(string) (Required) html markup.

$term

(object) (Required) Terms.

$link

(string) (Required) Link.

$count

(integer) (Required) Count.


Return

(string) HTML markup.


Source

File: addons/woocommerce/classes/class-astra-ext-woocommerce-markup.php

		public function custom_woocommerce_layered_nav_term_html( $term_html, $term, $link, $count ) {

			$term_html = str_replace( '<a rel="nofollow" href="' . esc_url( $link ) . '">' . esc_html( $term->name ) . '</a>', '<a rel="nofollow" href="' . esc_url( $link ) . '"><span class="title">' . esc_html( $term->name ) . '</span> <span class="count">(' . absint( $count ) . ')</span></a>', $term_html );

			return $term_html;
		}

Changelog

Changelog
Version Description
3.9.0 Introduced.

User Contributed Notes

You must log in before being able to contribute a note or feedback.