Welcome to WPSE. You can use wp_insert_user, you don’t need to hook onto anything.
Assuming here they fill out a form with a name, username, email and password field, and you capture it however you want.
$name_array = explode(' ',$_POST['name']);
$user = array(
'user_login' => $_POST['username'],
'user_pass' => $_POST['password'],
'user_email' => $_POST['email'],
'first_name' => $name_array[0],
'last_name' => $name_array[1],
);
$user_id = wp_insert_user( $user );
wp_new_user_notification( $user_id, $_POST['password'] );
Related Posts:
- How do I create a password reset link?
- Password field (and confirmation) showing up twice on registration
- How can I find users that didn’t set a password?
- Is there a maximum length to user passwords?
- Invalid key on activation and password reset
- Disable password limitations
- How to show password fields on registration form w/o plugins
- User activation in wordpress
- Send a password to a user who has just registered for a member area
- WordPress doesn’t send a password (but only a username) after new user registration
- WordPress not sending registration mail? (works on ‘lost password’)
- Group users by meta_value
- Is it possible to remove username field from the registration page? If so, how?
- users table – user_name vs. nicename
- Can I hook into user registration *before* a user is created?
- How to limit user registration to a specific set of domains?
- How do I create a user using the new JSON api in 4.7?
- How to display custom user meta from registration in backend?
- How to loop through each user id?
- How to prevent certain usernames from being registered?
- How to customise wp-login.php only for users who are setting a password for the first time?
- Creating a Closed WordPress Community Using Referral Codes
- Is there any good tutorial to write custom login, registration and password recovery forms? [closed]
- How To Get User Data in Callback Function for pre_user_nicename?
- Get plain password on register
- How to allow more than one registered user to have the same email?
- Displaying a Welcome Message to a Woocommerce User
- Set user password after creating user
- Store user’s registration date as meta
- How to allow wordpress to create username with symbols like +
- Registration options and approvals
- user activation email doesn’t work
- Which hook should I use to capture $_POST(‘password’) via profile update and password reset
- Mobile User Registration
- Conditionally registering users
- WordPress Register Form
- On multisite, plugins are disabled prematurely when viewing the /wp-activate.php page file
- Correct passwords keep appearing as incorrect
- Adding register & login in WordPress website
- How can I save unique user data on my site? [closed]
- registration form not working
- Creating user without username and password
- How can I disable all client side new accounts without disabling new user accounts?
- Custom Front End Registration – How Does the Key work in the Password Set Request?
- Unique registration for new writers to sign up
- Getting thousands of registration spam
- Custom registration form with different registration process based on what’s selected
- Is that possible show user’s post after user login
- How do I set user account inactive?
- Restrict partially matching usernames
- How to register a user to a group by an invitation code?
- Register form how to get Total Control of it
- Custom user registration
- Modifying the Default Registeration Page?
- WordPress + bbPress registration user-unfriendly?
- Associate multiple email addresses with the same user account, so they can log in with either
- Send clear password via mail
- Force display name to nickname wp
- Clients with empty username are not receiving request new password email
- wp_insert_user not returning anything
- wp_insert_user function not adding password field to database
- wp_register() displays logged in user as site admin
- Create a post with user_register doesn’t create title
- I need a custom Login Registeration in WordPress can somebody guide me?
- how to change the register process
- Wrong activation/confirmation link in email
- Is there a way to check the email of the user trying to register before he registers?
- Custom Registration Form Based on user location Woocommerce
- WordPress – Use user meta in ‘user_register’ after new registration
- Modify new user welcome email
- Can I add a unique code for each user based on the location?
- Not receiving any sign up mail, when user registers… Both admin & user
- WordPress is sending an empty email after using wp_insert_user
- Placeholder text for ajax loaded conditional fields in the registration form
- Creating custom registration and login page in wordpress
- Create a unique username with validation on wordpress registration
- wp_insert_user if user exists
- Create password protected page, no registration
- Redirect to “Thank you” page after register new user on custom register form
- Updating User Meta using Theme My Login with Custom Fields
- How to call or add password input / generate password / password strenght meter in custom registration form?
- How to hide username on wordpress registration?
- Saving an array of values (file urls) to update_user_meta()?
- What’s the Point of Spam Registrations?
- Add custom Date column to “All Users” admin panel in WP
- Can’t figure out how people are registering on my site
- Update a user field with a generated text
- Custom user creation and auto login problem
- How to generate Registration no
- Mail function not working with user accounts
- Upon registration, redirect new user to Dashboard
- Disallow google/other email plus and dot tricks when registering?
- disabling emails received by admins every time a new user signs up (function not working)
- how to allow unregistred users to view normal posts [closed]
- A conditional button
- enqueue style google fonts in functions.php in array?
- Create Unique and Customized User ID for Website Members in WordPress
- Change default error message “This email address is already in use” when registering a new user in WordPress using Caldera Forms
- Run custom validation only if all other wordpress registration form validation was successful
- wp_usermeta key problem