Skip to:
Content
Pages
Categories
Search
Top
Bottom

Show register form to logged users


  • shendeluth
    Participant

    @shendeluth

    Hello,

    i need to allow logged users to use Register form. I know i can comment this code into bp-members/screens/register.php/bp_core_screen_signup() :

    if ( is_user_logged_in() ) {
    
    		$redirect_to = bp_is_component_front_page( 'register' )
    			? bp_get_members_directory_permalink()
    			: bp_get_root_domain();
    
    		/**
    		 * Filters the URL to redirect logged in users to when visiting registration page.
    		 *
    		 * @since 1.5.1
    		 *
    		 * @param string $redirect_to URL to redirect user to.
    		 */
    		bp_core_redirect( apply_filters( 'bp_loggedin_register_page_redirect_to', $redirect_to ) );
    
    		return;
    	}

    but i need to do this using another method to mantain this modification to future updates of plugin.

    Some way to do this?

    Thank you.

Viewing 1 replies (of 1 total)

  • muhammadbilalwise
    Participant

    @muhammadbilalwise

    Hi,

    I am looking the same functionality as well, did you find out any solution as i tried to do by commenting the above-mentioned code as well but still redirected the login user to the home page instead of the registration form.

Viewing 1 replies (of 1 total)
  • You must be logged in to reply to this topic.
Skip to toolbar