• Resolved hansderuiter

    (@hansderuiter)


    I just installed the Lightweight Subscribe To Comments plugin to my website, and it’s working well, except for one problem: it also appears on WooCommerce reviews forms.

    How can I disable this? It doesn’t make sense for people to subscribe to product reviews.

Viewing 1 replies (of 1 total)
  • Thread Starter hansderuiter

    (@hansderuiter)

    I figured it out myself. No idea if this is the best method, but this works:

    // Remove the “Lightweight Subscribe To Comments” plugin’s subscribe checkbox for product reviews
    add_action( ‘comment_form_before’, ‘remove_subscribe_from_review_form’, 0);
    function remove_subscribe_from_review_form() {
    if(is_product()) {
    remove_filter( ‘comment_form_submit_field’, ‘lstc_comment_form_submit_field’, 9999 );
    remove_action( ‘comment_form’, ‘lstc_comment_form’, 99 );
    }
    }

Viewing 1 replies (of 1 total)
  • You must be logged in to reply to this topic.