woocommerce_layered_nav_count, ( . absint( $count
woocommerce_layered_nav_count, ( . absint( $count
Appears in: woocommerce.11.0.0
Hook Type: filter
Displaying hooks found in version: woocommerce.11.0.0apply_filters('woocommerce_layered_nav_count, ( . absint( $count') is found 3 times:
- /includes/class-wc-brands.php line 1025
), 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 464
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 461
$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>'; }