Skip to:
Content

BuddyPress.org

Changeset 5237


Ignore:
Timestamp:
10/11/2011 02:49:55 PM (13 years ago)
Author:
boonebgorges
Message:

Introduces bp_loggedin_register_page_redirect_to filter, so that site owners and plugin authors can select the page to which logged-in users are redirected when attempting to visit the registration page. Fixes #3597

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp-members/bp-members-signup.php

    r5143 r5237  
    2424    if ( is_user_logged_in() ) {
    2525        if ( bp_is_component_front_page( 'register' ) )
    26             bp_core_redirect( bp_get_root_domain() . '/' . bp_get_members_root_slug() );
     26            $redirect_to = bp_get_root_domain() . '/' . bp_get_members_root_slug();
    2727        else
    28             bp_core_redirect( bp_get_root_domain() );
     28            $redirect_to = bp_get_root_domain();
     29
     30        bp_core_redirect( apply_filters( 'bp_loggedin_register_page_redirect_to', $redirect_to ) );
    2931
    3032        return;
Note: See TracChangeset for help on using the changeset viewer.