woocommerce_reviews_title

woocommerce_reviews_title

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: filter

See hook in core

Displaying hooks found in version: woocommerce.8.7.0

apply_filters('woocommerce_reviews_title') is found 1 times:

  • /templates/single-product-reviews.php line 35
    			$count = $product->get_review_count();
    			if ( $count && wc_review_ratings_enabled() ) {
    				/* translators: 1: reviews count 2: product name */
    				$reviews_title = sprintf( esc_html( _n( '%1$s review for %2$s', '%1$s reviews for %2$s', $count, 'woocommerce' ) ), esc_html( $count ), '<span>' . get_the_title() . '</span>' );
    				echo apply_filters( 'woocommerce_reviews_title', $reviews_title, $count, $product ); // WPCS: XSS ok.
    			} else {
    				esc_html_e( 'Reviews', 'woocommerce' );
    			}
    			?>
    		</h2>