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.

  • You must be logged in to reply to this topic.
Skip to toolbar