Skip to:
Content
Pages
Categories
Search
Top
Bottom

How to disable the registration function of buddypress?


  • jonleesky
    Participant

    @jonleesky

    hello, guys. How to disable the registration function of buddypress? I just want the registration function of wordpress. thanks for your time!(^_^)∠※

Viewing 13 replies - 1 through 13 (of 13 total)

  • Venutius
    Moderator

    @venutius

    What are you trying to achieve?


    jonleesky
    Participant

    @jonleesky

    I just want the original wordpress registration page. After I installed buddypress, It becomes a new registration page. is there any way to stop it? ((o(^_^)o))


    Venutius
    Moderator

    @venutius

    There’s no easy way. The Plugiin BP Better Registration manipulates the registration page so it’s not impossible, just would need quite a bit of coding I reckon.


    jonleesky
    Participant

    @jonleesky

    (..•˘_˘•..)


    Venutius
    Moderator

    @venutius

    You can overload the register page, but I’m not aware how you can disable it and have BP running.


    jonleesky
    Participant

    @jonleesky


    mcpeanut
    Participant

    @mcpeanut

    @jonleesky I posted the solution to this nearly two years ago, I have not tested this code recently but you can try it out. please see this topic


    mcpeanut
    Participant

    @mcpeanut

    @jonleesky I posted the solution to this nearly two years ago, I have not tested this code recently but you can try it out.

    function my_disable_bp_registration() {
      remove_action( 'bp_init',    'bp_core_wpsignup_redirect' );
      remove_action( 'bp_screens', 'bp_core_screen_signup' );
    }
    add_action( 'bp_loaded', 'my_disable_bp_registration' );
    
    add_filter( 'bp_get_signup_page', "firmasite_redirect_bp_signup_page");
        function firmasite_redirect_bp_signup_page($page ){
            return bp_get_root_domain() . '/wp-signup.php'; 
        }

    What you will need to do is first create a bp-custom.php file (make sure you add the opening and closing tags at the top and bottom ) and put it in your plugins folder, then paste the code between the PHP opening and closing tags and save.

    This should disable BuddyPress registration and let you use WordPress registration as default, hope this helps.


    mcpeanut
    Participant

    @mcpeanut

    By the way, this solution was originally thx to @r-a-y I believe, I can’t remember it was a looooong time back.


    jonleesky
    Participant

    @jonleesky

    Thanks for your help. but it didn’t work, the screen prompt: ERR_TOO_MANY_REDIRECTS

    I’m using the wordpress 4.9.4 and buddypress 2.9.3, don’t know what to do…o(╥﹏╥)o

    @mcpeanut


    mcpeanut
    Participant

    @mcpeanut

    @jonleesky hmm, try this

    /*disable registration bp */
    function my_disable_bp_registration() {
      remove_action( 'bp_init',    'bp_core_wpsignup_redirect' );
      remove_action( 'bp_screens', 'bp_core_screen_signup' );
    }
    add_action( 'bp_loaded', 'my_disable_bp_registration' );
    
    add_filter( 'bp_get_signup_page', "firmasite_redirect_bp_signup_page");
        function firmasite_redirect_bp_signup_page($page ){
            return bp_get_root_domain() . '/wp-login.php?action=register'; 
        }

    Let me know bud


    jonleesky
    Participant

    @jonleesky

    Aha! It works, it makes me very happy. thank you, bro

    you are great. (๑•̀ㅂ•́)و✧

    @mcpeanut


    JanDieckmann
    Participant

    @jandieckmann

    I am also thankful because I looked for the same issue and the code posted by mcpeanut worked for me too.

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