Redirect Signup Link from /register to a page of my choice
-
The BuddyPress admin bar for logged out users shows a signup link, and that link directs to /register. I’d like it to direct to the page I’ve designated within S2Member as my page for members to join (called “Join”), which lists the pricing and details of my membership packages. As it is now, if a guest clicks on Signup, they can register a membership or blog without going through my registration process. Those packages then use s2Member buttons to handle the rest of the registration process, looping back around to /register after the guest has paid.
There is an option within BuddyPress to assign its pages to your own WP pages (example: assign Register to the page “Join”…) but that’s not what I want. I don’t want to get rid of /register, but reassign the “Signup” link to point to my specific “Join” page.
Does this make sense at all? Following the tutorials on modifying the admin bar, I found this code below, and considered just hard coding the link to the “Join” page where ‘ . bp_get_signup_page(false) . ‘ is now.
Would that work? Or, will that be overwritten each time there is a buddypress update?
<br /> // Show "Sign Up" link if user registrations are allowed<br /> if ( bp_get_signup_allowed() )<br /> echo '<li class="bp-signup no-arrow"><a href="' . bp_get_signup_page(false) . '">' . __( 'Sign Up', 'buddypress' ) . '</a></li>';
- The topic ‘Redirect Signup Link from /register to a page of my choice’ is closed to new replies.