I understand that front end forms is a feature many people like, however I have not enabled it on my site and there is a conflict with WooCommerce reviews system ( which is using the basic comments_template wp functionality ). Basically my acf product fields are showing up in product reviews while both logged in and logged out.
Commenting out these hooks fixes for me
add_action( 'comment_form_logged_in_after', array( $this, 'add_comment') );
add_action( 'comment_form_after_fields', array( $this, 'add_comment') );
But I’m not sure if I’m missing something here. This isn’t intentional is it ?
I’m assuming that you’ve added custom fields to the comment form and that’s why they’re appearing?
If this is the case then you need to wrap the code that’s displaying fields in a check to see if the user is logged in. https://codex.wordpress.org/Function_Reference/is_user_logged_in