• Resolved kiru4aa

    (@kiru4aa)


    Hello
    I installed ultimate member plugin.
    But user what was registered in main site can’t register on subsite.
    Is it setting problem or bag?
    Could you help to fix this?

    Thank you

Viewing 1 replies (of 1 total)
  • Plugin Contributor Champ Camba

    (@champsupertramp)

    Hi @kiru4aa

    It is by design. You will need to customize it so that it registers users to subsites.

    You can try this code snippet:

    add_action("um_registration_complete", "um_custom_add_user_to_main_site" , 99, 2);
    function um_custom_add_user_to_main_site( $user_id, $args ){
    
    	if( isset( $args['form_id'] ) && $args['form_id'] ==  123 ){
    
    	     $blog_id = 1; // Site ID #
    
    	     um_fetch_user( $user_id );
    			
    	     $role = um_user("role");
    			 
    	     add_user_to_blog( $blog_id, $user_id, $role );
    
    	 }
    }
    

    Regards,

Viewing 1 replies (of 1 total)
  • The topic ‘User registration on multisite’ is closed to new replies.