woocommerce_template_loop_product_title()WC 1.0

Show the product title in the product loop. By default this is an H2.

Хуки из функции

Возвращает

null. Ничего.

Использование

woocommerce_template_loop_product_title();

Код woocommerce_template_loop_product_title() WC 6.4.1

function woocommerce_template_loop_product_title() {
	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
}