Recently I activated Jetpack Comments on a site that also had WooCommerce and this completely broke the reviews system because of course Jetpack wanted to do it’s job and replace the comments with it’s own.
After Googling around and checking WordPress.org there were not many resources available showing how to fix this. I did find one reply in a WordPress.org forum thread showing how to fix this. So thanks to cam5 on GitHub we have this handy code to toss into the top of the
single-product-reviews.php WooCommerce template file which fixes everything!
$jp = new Jetpack_Comments; remove_action( 'comment_form_before', array( $jp, 'comment_form_before' ) ); remove_action( 'comment_form_after', array( $jp, 'comment_form_after' ) );` comment_form( apply_filters( 'woocommerce_product_review_comment_form_args', $comment_form ) );
I did a quick check for an action this could be tied to instead of having to use a custom template file but did not find anything right away.
Subscribe to Patrick Garman
Get the latest posts delivered right to your inbox