add log out redirect in child theme functions.php?
-
Hi there,
background: latest version of root install w/p + Buddy press + s2member pro.
aim: redirect members to home page on log out, rather than back to the default of the membership options page – just like the options in the s2m login widgit!i’ve searched the forums and come up with some code, but not the exact location of where to put it… so what i have is this:
<a href="<?php echo S2MEMBER_LOGOUT_PAGE_URL; ?>&redirect_to=%2Fgoodbyepage%2F">Logout</a>
or this…
<a href="<?php echo wp_logout_url('http://yoursite.com/goodbyepage'); ?>" title="Logout">Logout</a>
from the old forum here http://www.s2member.com/forums/topic/logout-redirect/
So where exactly would i put this? In my child theme functions.php? and if so, just as it is? or can i add it to a menu link, so in the alt title for the buddypress log out menu link?
Many thanks – any help much appreciated!
- The topic ‘add log out redirect in child theme functions.php?’ is closed to new replies.