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?
- User registration followed by automatic login
- Adding “Remember Me” in custom login
- Integrating WordPress to my website, while keeping my own authentication system
- Change the footer text on the login page
- Changing user_nicename
- How to disable wordpress confirmation email for new users
- wordpress separate registration for different roles
- How to place login logout link on menu that redirects users back to current page?
- How to turn off redirection from ‘domain.com/login’ to ‘domain.com/wp-login.php’
- Best way to create a user programatically
- How to resolve error “Cookies are blocked due to unexpected output.”?
- Why when I instantiate wp_error in a validation method my user registration method stops working?
- Constructing a custom login form using ajax
- automated tests as a user?
- woocommerce and is_user_logged_in() if not redirect to homepage
- Help with adding pagination to custom wp_query
- Passing the page ID to a login php script
- How to send user data in json format to another server when user register on wordpress site in PHP
- Check if user is logged in when clicking certain links on certain pages
- items_wrap not working
- PHP If user is logged in & on home page redirect
- Creating login session via CURL
- Recovering WP Login Credintials in Code?
- Anyway to output the registration form like the login form with wp_login_form()?
- WordPress custom login form using Ajax
- Redirect to a different page through registration, depending on page
- How to: PHP Log Out Link?
- Reordering Buddy Press profile navigation [closed]
- Why is my cookie not unsetting upon logout? [closed]
- Making BuddyPress Activity Stream (Post Type) Featured Images Clickable [closed]
- Programmatic Login from 3rd Party site
- How do I programmatically set a user as spam in BuddyPress? [closed]
- How to debug my custom login form looping intermittently
- How can I save unique user data on my site? [closed]
- user_profile_update_errors hook not executing
- getting logged in user info (wp-load.php) from parent directory
- Paypal form integration with wordpress registration form without plugin [closed]
- Problem with login form
- 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
- Run a code only on theme activation only during first activation
- Fatal error: Call to undefined function register_new_user()
- How Can I Edit the Registration Code?
- How can I add a new row in a separate database when someone registers via WordPress?
- One account with multiple logins
- Custom Registration username_exists / email_exists
- I installed WordPress locally now how do I login?
- 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]
- 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
- How to block specific user id in custom login form?
- Log out without confirmation request (nonce)
- Call WP Rest-Api to GET /users/me returned NOTHING in console
- Infinite loop when logging out using custom login form
- Menu not updating for logged in users after redirect
- how to use auth_redirect() redirect visitor to login page if they are not login when they click account and order page?
- Change Login or Logout text based on status
- How do I visualize the author’s post from the front end?
- 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
- Attaching an upload to a user
- Change username link in admin bar
- Adding a sidebar to wp-login.php
- Where is the php file of single member profile view (BuddyPress)
- Create a dynamic buddupress tab
- add bootstrap modal after login in wordpress
- 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
- Check user last login date
- 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
- Add a custom user meta data on registration based on user email