On Multisite Environment, Users Also Created and Showing on the Main Site

  • Participant
    chris on #40636

    E-Seeker, allows users to register accounts and create their website, as part of a multisite environment.
    The problem occurs after registration, where the user is added on the main site as well, as seen in the print screen:

    I also added this code to manage to prevent the user to have access to the main site:

    When I disable BuddyPress, and sign up a new user on https://e-seeker.com/wp-signup.php, I have a smooth registration, without the user added to my main site;

    I would appreciate any help on this matter so that a user could register an account or a website without being added and have access to my main site.

    WordPress version: 5.8.1
    BuddyPress version: 9.1.1
    link to your site: https://e-seeker.com/

  • Keymaster
    (BuddyDev Team)
    Posts: 22546
    Brajesh Singh on #40678

    Hi Chris,

    Please put this in your bp-custom.php and let me know if it works or not?

    add_action( 'bp_loaded', function () {
    	remove_action( 'bp_core_activated_user', 'bp_members_add_role_after_activation', 1 );
    } );


You must be logged in to reply to this topic.

This topic is: not resolved