woocommerce_reviews_title

woocommerce_reviews_title

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: filter
See hook in action

See hook in core

Displaying hooks found in version: woocommerce.9.7.1

apply_filters('woocommerce_reviews_title') is found 1 times:

  • /templates/single-product-reviews.php line 35
    31
    32
    33
    34
    35
    36
    37
    38
    39
    40
        $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>

See this hook used in plugins: