woocommerce_product_loop_title_classes хук-фильтр . WC 1.0
Show the product title in the product loop. By default this is an H2.
Использование
add_filter( 'woocommerce_product_loop_title_classes', 'filter_function_name_8917' ); function filter_function_name_8917( $string ){ // filter... return $string; }
- $string
- -
Где вызывается хук
woocommerce_product_loop_title_classes
woocommerce/includes/wc-template-functions.php 1159
echo '<h2 class="' . esc_attr( apply_filters( 'woocommerce_product_loop_title_classes', 'woocommerce-loop-product__title' ) ) . '">' . get_the_title() . '</h2>'; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped