If User is Logged in and clicks the Members button redirect to Shop Page
-
Hi All,
I’m working on an interesting little site.
I have got a load of redirects going on and I wanted to know if any one has any idea how to do a little function for me.
I have a Members page and if some one has logged in and clicks on the members page I want it to redirect to the shop.
add_filter(‘woocommerce_login_redirect’, ‘wc_login_redirect’);
function wc_login_redirect( $redirect_to ) {
$redirect_to = ‘https://sitename.com/shop/’;
return $redirect_to;
}I have this but how do I make a page redirect
So in sudo code it would be:
If User is Logged in and clicks the Members button redirect to Shop Page
Thanks in advance
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘If User is Logged in and clicks the Members button redirect to Shop Page’ is closed to new replies.