Redirect : “You must be logged in to post a comment”
-
I having a bug/error on a site using woocommerce. On each product page there is a section to leave a review, but the user must be logged in to comment (which I want)
So, when a user is not logged in, they get the message “You must be logged in to post a comment” and the log in link goes to https://www.mysite.com/wp-login….. and redirects back to the previous page. I do not want any of my users seeing the wordpress login. I want them to go to woocommerce login page https://www.mysite.com/my-account and then keep the redirect in place – redirected back to the page they were on once logged in.
I know this is something to do with classes {must-login-in} & {logged-in-as}. ‘
.sprintf( __( ‘You must be logged in to post a comment.’ ), get_permalink(get_option(‘woocommerce_myaccount_page_id’))).”;
- The topic ‘Redirect : “You must be logged in to post a comment”’ is closed to new replies.