woocommerce_template_loop_product_title()WC 1.0

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

Hooks from the function

Return

null. Nothing (null).

Usage

woocommerce_template_loop_product_title();

woocommerce_template_loop_product_title() code WC 8.7.0

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
}