diff --git a/templates/single-product-reviews.php b/templates/single-product-reviews.php index b0f19745233..87d61a5552e 100644 --- a/templates/single-product-reviews.php +++ b/templates/single-product-reviews.php @@ -13,7 +13,7 @@ * @see https://docs.woocommerce.com/document/template-structure/ * @author WooThemes * @package WooCommerce/Templates - * @version 3.5.0 + * @version 3.5.2 */ if ( ! defined( 'ABSPATH' ) ) { exit; // Exit if accessed directly @@ -31,7 +31,8 @@ if ( ! comments_open() ) {

get_review_count() ) ) { /* translators: 1: reviews count 2: product name */ - printf( esc_html( _n( '%1$s review for %2$s', '%1$s reviews for %2$s', $count, 'woocommerce' ) ), esc_html( $count ), '' . get_the_title() . '' ); + $reviews_title = sprintf( esc_html( _n( '%1$s review for %2$s', '%1$s reviews for %2$s', $count, 'woocommerce' ) ), esc_html( $count ), '' . get_the_title() . '' ); + echo apply_filters( 'woocommerce_reviews_title', $reviews_title, $count, $product ); } else { _e( 'Reviews', 'woocommerce' ); }