• Hi Guys,

    been spending hours going through all the google search can’t find a answer to my question.

    When you enable “Require Login To Comment” option in wordpress. You will see the following message under the Review Tab of woocommerce.

    Be the first to review “Product Name”
    You must be logged in to post a comment.

    And the “logged in” is hyper linked to wp-login.php?redirect_to=

    Where do I find the code to modify it so it goes to my-account page to login instead of the standard wordpress page WITHOUT using a plugin?

    Or a even better way is where do I find the hook to change the above message to a form to enter username and password to login straight to the page?

    I’ve tried single-product-review.php etc I couldn’t find the fields that I required.

    All help/codes suggestion that can point me to the right direction is appreciated.

    Thanks in advance!

Viewing 4 replies - 1 through 4 (of 4 total)
  • Anonymous User 9269003

    (@anonymized-9269003)

    Yes, When I put a code to functions.php it doesn’t work on the Review tab, on product page. It works on blog posts only.

    How to change “You must be logged in to post a comment” on the Review tab?

    Anonymous User 9269003

    (@anonymized-9269003)

    I also found this

    function gr_custom_comment_form_args( $args ){

    $args[‘must_log_in’] = ‘You must be the YOUR TEXT HERE.’;

    return $args;
    }
    add_filter( ‘gr_comment_form_args’, ‘gr_custom_comment_form_args’ );

    But it doesn’t work

    I have been searching for this answer for a while, but got no luck. If anyone knows the answer for the above question, please let us know. Really appreciate it.

    Anyone found an answer for this yet? Any update on this will be great.

    Thanks.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘[Plugin: WooCommerce] Require Login To Review Hook’ is closed to new replies.