How to change the redirect for New User Notification Email
-
Hello.
Can anyone PLEASE tell me how to change the redirect in wpuf-add-post.php?
When a user on my website is not logged in, and they try to add a post, the message on the webpage reads:
This page is restricted. Please
- Log in
to view this page.
So when the user clicks the “Log in” link, they are taken to my WordPress Admin Login page, instead of the correct Login Page (https://www.okyoucantellme.com/login/).
Now, I’m not to savvy with .php at all, but I managed to find the code that prints this message inside of the wpuf-add-post.php function, and it is this line:
printf( __( “This page is restricted. Please %s to view this page.”, ‘wpuf’ ), wp_loginout( get_permalink(), false ) );
on the web page isI also found out that the “%s” equates to:
Which confirms what is happening when the user clicks on the “Log in” link in the message. But I cannot seem to track down where and how to deal with the “%s”.
What I would like to do is change the redirect so that it send the user to the correct login page on the website, which is: https://www.okyoucantellme.com/login/
Can anyone show me how, and where, I can make a change to do this? OR have any suggestions that may help, as I am pretty stuck right now and would appreciate any help.
Thanks so much in advance…
Jacquie
- The topic ‘How to change the redirect for New User Notification Email’ is closed to new replies.