context['postId'] ) ) { return ''; } if ( post_password_required( $block->context['postId'] ) ) { return; } $product = \wc_get_product( $block->context['postId'] ); if ( ! $product ) { return ''; } ob_start(); brandy_get_template_part( 'woocommerce/single-product-review-form', null, array( 'product' => $product ) ); $rating_html = ob_get_clean(); return $rating_html; } }