bp_signup_usermeta

  • apply_filters( 'bp_signup_usermeta', $usermeta )

    Source Reference:

    • Component: BuddyPress :: bp-members
      File: /bp-members/bp-members-signup.php :: Trac Source Line: 147
      				$usermeta['profile_field_ids'] = $_POST['signup_profile_field_ids'];
      
      				// Hash and store the password
      				$usermeta['password'] = wp_hash_password( $_POST['signup_password'] );
      
      				// If the user decided to create a blog, save those details to usermeta
      				if ( 'blog' == $active_signup || 'all' == $active_signup )
      					$usermeta['public'] = ( isset( $_POST['signup_blog_privacy'] ) && 'public' == $_POST['signup_blog_privacy'] ) ? true : false;
      
      				$usermeta = apply_filters( 'bp_signup_usermeta', $usermeta );
      
      				// Finally, sign up the user and/or blog
      				if ( isset( $_POST['signup_with_blog'] ) && is_multisite() )
      					bp_core_signup_blog( $blog_details['domain'], $blog_details['path'], $blog_details['blog_title'], $_POST['signup_username'], $_POST['signup_email'], $usermeta );
      				else
      					bp_core_signup_user( $_POST['signup_username'], $_POST['signup_password'], $_POST['signup_email'], $usermeta );
      
      				$bp->signup->step = 'completed-confirmation';
      			}
      

Comments are closed.