Added filter for product title classes within product loop

This commit is contained in:
Andrew Lazarus 2019-02-12 13:37:02 +01:00 committed by GitHub
parent 0d901a2eca
commit aee5cf2bff
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -1082,7 +1082,7 @@ if ( ! function_exists( 'woocommerce_template_loop_product_title' ) ) {
* Show the product title in the product loop. By default this is an H2.
*/
function woocommerce_template_loop_product_title() {
echo '<h2 class="woocommerce-loop-product__title">' . get_the_title() . '</h2>'; // phpcs:ignore
echo '<h2 class="' . apply_filters( 'woocommerce_product_loop_title_classes', 'woocommerce-loop-product__title' ) . '">' . get_the_title() . '</h2>'; // phpcs:ignore
}
}
if ( ! function_exists( 'woocommerce_template_loop_category_title' ) ) {