Having trouble with Specify URL redirect after login
-
Hi I’ve tried to paste this code into the plugin with no success. Is there only one place I need to insert my URL into this code or several? I am pasting my website url as
( ‘https://mywebsitename.com’ )
where you have indicated ( ‘/mypage/’ ). Is this correct? Below is the snippet of code I got from your FAQ. Right now I’m also getting the infinite loop too. Thanks!/**
* Set the URL to redirect to on login.
*
* @return string URL to redirect to on login. Must be absolute.
**/
function my_forcelogin_redirect() {
return site_url( ‘/mypage/’ );
}
add_filter(‘v_forcelogin_redirect’, ‘my_forcelogin_redirect’, 10, 1);
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Having trouble with Specify URL redirect after login’ is closed to new replies.