woocommerce_layered_nav_count

woocommerce_layered_nav_count

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: filter

See hook in core

Displaying hooks found in version: woocommerce.9.5.1

apply_filters('woocommerce_layered_nav_count') is found 3 times:

  • /includes/class-wc-brands.php line 951
    			),
    			wp_specialchars_decode( $link )
    		);
    		$term_html            = '<a rel="nofollow" href="' . esc_url( $link ) . '">' . esc_html( $term->name ) . '</a>';
    		$term_html           .= ' ' . apply_filters( 'woocommerce_layered_nav_count', '<span class="count">(' . absint( $count ) . ')</span>', $count, $term );
    		return $term_html;
    	}
    
    	/**
    	 * Temporarily tag a post with meta before it is saved in order
    	 * to allow us to be able to use the meta when the product is saved to add
    
  • /includes/widgets/class-wc-widget-brand-nav.php line 442
    			echo esc_html( $term->name );
    
    			echo ( $count > 0 || $option_is_set ) ? '</a> ' : '</span> ';
    
    			echo wp_kses_post( apply_filters( 'woocommerce_layered_nav_count', '<span class="count">(' . absint( $count ) . ')</span>', $count, $term ) );// phpcs:ignore WooCommerce.Commenting.CommentHooks.MissingHookComment
    
    			$child_terms = get_terms(
    				array(
    					'taxonomy'   => $taxonomy,
    					'hide_empty' => true,
    					'parent'     => $term->term_id,
    
  • /includes/widgets/class-wc-widget-layered-nav.php line 457
    				$link      = false;
    				$term_html = '<span>' . esc_html( $term->name ) . '</span>';
    			}
    
    			$term_html .= ' ' . apply_filters( 'woocommerce_layered_nav_count', '<span class="count">(' . absint( $count ) . ')</span>', $count, $term );
    
    			echo '<li class="woocommerce-widget-layered-nav-list__item wc-layered-nav-term ' . ( $option_is_set ? 'woocommerce-widget-layered-nav-list__item--chosen chosen' : '' ) . '">';
    			// phpcs:ignore WordPress.Security.NonceVerification.Recommended, WordPress.Security.EscapeOutput.OutputNotEscaped
    			echo apply_filters( 'woocommerce_layered_nav_term_html', $term_html, $term, $link, $count );
    			echo '</li>';
    		}