I think you just need to take the md5()
out of this line:
$result['user_name'] = md5($result['user_email']);
I’m not that familiar with buddy press but if empty($result['errors']->errors['user_email'])
being true means a user was succesfully registered I’d use something like
wp_update_user( array( 'ID' => $user_id, 'name' => $result['user_email'] ) );
Related Posts:
- How build a custom login/register form with error handling?
- WordPress shows registration link for non logged users
- Is it necessary to sanitize wp_set_password user input?
- How to give new users two specific user role options upon WordPress user registration
- User management system similar to wordpress one?
- Change homepage content if user is logged in – BuddyPress
- Issues adding Recaptcha v3 to WordPress Registration
- Newbie question. Login/Registration. New PHP page
- How do I do so that people can register on my wordpress site?
- Log in / Log Out Custom Button
- WordPress Stripping Colons?
- Should `wp_login` be used since it’s deprecated?
- How to redirect users based on role and content of redirect_to?
- Change CSS based on is_user_logged_in
- How to display login form anywhere, when user isn’t logged in, without redirecting?
- How can I open up my administrative panel to everyone?
- User register hook is not working in woocomerce register form
- Password minimum length in personal subscription [closed]
- Run a code only on theme activation only during first activation
- Buddypress update user avatar image via REST
- Fatal error: Call to undefined function register_new_user()
- How Can I Edit the Registration Code?
- How do you create two separate Register pages?
- How can I add a new row in a separate database when someone registers via WordPress?
- After adding my website to a new server, I keep getting a unexpected end of file error, but the file is identitcal to it’s original source
- One account with multiple logins
- Lost in trying to create user database system
- Custom Registration username_exists / email_exists
- Shortcode to log user into current URL
- PHP getting error when trying to access WP-Admin Dashboard
- I installed WordPress locally now how do I login?
- If user is logged in not working
- Custom User Registration script only allowing usernames with 16 characters
- Why BuddyPress fields not saving?
- How to do something when user profile rendereing?
- implementing a jQuery “click to expand” link in WordPress [closed]
- is user member of a group, show them categories [closed]
- Show login greeting above sub-menu links?
- Wp favorites posts by specific category? [closed]
- Display multi-select box choices in a bullet list [closed]
- is_user_logged_in returning nothing on custom page
- Customize Buddypress adminbar [closed]
- Help with accessing wp-admin page and resolving error messages
- Prevent Buddypress Rewrite Rules on Non-Buddypress pages/posts
- Removing “There is no account with that username or email address.” error message in “/wp-login.php?action=lostpassword”
- Can’t log in to WordPress wp-admin after adding code to functions.php
- Check if user had autologin & if so, logout
- Admin Panel 404 Error after login
- copy fields value to another field
- PHP warning – Use of undefined constant ‘FORCE_SSL_LOGIN’ ‘FORCE_SSL_ADMIN’ on wp-config.php
- How to block specific user id in custom login form?
- Log out without confirmation request (nonce)
- Custom User registration system
- Having trouble creating two shortcodes, one for logged in user and one for visitors
- Call WP Rest-Api to GET /users/me returned NOTHING in console
- Uploading/integrating custom user registration page
- Restrict wordpress access to logged users only
- Infinite loop when logging out using custom login form
- Menu not updating for logged in users after redirect
- Including user data in “new user notification email”
- how to use auth_redirect() redirect visitor to login page if they are not login when they click account and order page?
- Display specific page if user signed in
- Change Login or Logout text based on status
- Refresh page after login with litespeed cache
- Help hooking into user_register
- How to auto-generate random numbers in username?
- Redirect after login depending on the URL
- How do I visualize the author’s post from the front end?
- Need help with AJAX login to call php in functions.php to handle redirects based on user cap (role)
- Redirecting the lost password page request when using a custon login page
- How do I send a POST request with params with WordPress REST API
- wp-login.php?redirect_to=https problem
- is_user_logged_in() not working in homepage
- Attaching an upload to a user
- Change username link in admin bar
- Creating a custom register form
- Check if a user is logged into my WordPress site which is on a different server
- how to get buddy press messages based on thready_id?
- Adding a sidebar to wp-login.php
- Where is the php file of single member profile view (BuddyPress)
- Create a dynamic buddupress tab
- List users in a dropdown for login
- Registration form not registering First and Last name
- Not logged in when using http
- add bootstrap modal after login in wordpress
- White screen after login attempt
- Editing a WordPress plugin to add my own functionality
- Get string from array and start loop [closed]
- how to register a second page-template
- 2 small questions: How to redirect to a created page & show that pages title in wp, bp
- I want to remove the register/login WordPress top bar from my website
- Redirect users not logged in to the standard login page (and back) from some posts and pages
- How to replace wp-admin login page to another location?
- Null value given when confirming email’s
- Check user last login date
- WCFM Custom form
- Prevent users from display default wordpress login form
- login redirect based on user role not work as expected
- rest_cannot_create_user – Sorry, you are not allowed to create new users. CURL WORDPRESS REST API
- How to change wp-admin and wp-login urls