If you want to create custom register page then you use in wp-users Table
wp_create_user();
It will create the user and if you want to add custom field then save that field data in wp-usermeta table using
update_user_meta();
and last if you want to add role to the user then use
$u = new WP_User( $user_ID);
$role_of_user= $u->roles[0];
$u->remove_role($role_of_user);
$u->add_role('your_role');
Related Posts:
- Separate registration and login for different roles
- SSO / authentication integration with external ‘directory service’
- How to prefill WordPress registration with social details
- Woocommerce registration page [closed]
- WordPress registration message
- How to remove the WordPress logo from login and register page?
- Login email after registration never sent or received
- I want to disable E-Mail verifcation / activation when a user signs up for my WordPress site
- How do I check if a post is private?
- Receiving “This content cannot be displayed in a frame” error on login page
- How to customise wp-login.php only for users who are setting a password for the first time?
- What hooks should I use for pre-login and pre-registration actions?
- Change register form action url
- Problem with logging in WP users automatically
- Is it possible a one click user registration with Facebook or Twitter (or other Social Networks)?
- Register/Login using only phone number?
- Force users to register in order to view website [duplicate]
- How do I force “users must be registered and logged in” on subsites?
- auto login after registeration for wp-members plugin
- How To Change Wp Register/Login URL Permanently To My Custom Page
- How to modify the action attribute of the wp-login.php?action=register form?
- Correct passwords keep appearing as incorrect
- Disabling standard registration login with username/email and password?
- Login form doesn’t log in
- Get the url of custom login page in the registration page
- By registering always make uppercase the first letter of the login
- Show reCaptcha on Custom Frontend Login & Register Form [closed]
- Best option to implement external register/login to WP from self-made API
- Auto Login After Registration
- Disable all other page except index,register,login till user login
- What speaks against using a custom login.php / register.php to wordpress?
- How do I add Login fields and registration link to the header?
- How to make a user be able to register if such a login already exists?
- Sending new registration meta values to admin by email
- Are login functions considered part of the WP backend?
- WordPress registration page template
- Removing “public” user registration without completely turning it off?
- Disable registration on certain condition
- what is the best and safest way to allow users to register to site
- Updated : how to make email optional while user registration using default wordpress form
- Problem in auto login after registration
- How to invalidate `password reset key` after being used
- Updating usermeta from login redirect to billing address
- Chosen user password in registration is not being accepted on Login
- WordPress auto login user after registration only from a specific page
- User account activation links are lacking query strings
- Login user after registration programmatically
- How to get rid of the username of registration form in theme my login wp plugin?
- Where do I find “log in” and “register” link which are located on the top right corner?
- How to force login after user browses for a few minutes or browses a few pages?
- Registration and Login form
- WordPress and Magento: let WordPress manage user registration and logins?
- Click on banner to register to the blog
- How to put Login, Register and newsletter widget on the same page?
- make a login system for site visitors
- How to create a fully functional user registration in WordPress?
- Increase of failed login attempts, brute force attacks? [closed]
- Disable WordPress 3.6 idle logout / login modal window / session expiration
- How to pass users back and forth using session data?
- Send reset password link to user from custom lost password form
- Change sign-on URLs for security purposes
- How long do users stay logged in if they DON’T check remember me?
- Mobile users redirected to a different page on login unless linked to another post
- 2 wordpress blogs with 1 users table and 1 login
- Bootstrap Modal as login page
- Custom login page always redirecting to wp-login.php
- Passing username to login screen
- Sniffing wordpress user’s credentials
- How to Get Logged-in to “Remote WP Site” from my local script (in Same Browser)?
- v5.6.2 User cannot stay logged in – wordpress_test cookie placed but not auth cookies
- Share WordPress login info with other PHP app
- Facebook login for private group members
- WordPress c-panel login error [closed]
- Locked Out Of WordPress, Can’t Reset Through PHPMyAdmin
- Facebook and WordPress
- How can I redirect wp-login.php but still allow logout and other actions?
- Form Action submit over https
- WordPress on localhost (LAMP) – Can’t login, just redirects to wp-login.php
- https to https problem – 404 and can’t login
- wordpress login without password just email address (NO 2 factor authentication with email)
- Does WordPress have built in brute force protection?
- Hide Author page from others
- Check if specific user is online outside wp
- Is there an application I can use to protect documents?
- WordPress Submitted Content
- Bizarre wp_signon problem
- Is it possible to use WordPress functions in a page template?
- How to change the login-URL with function.php?
- How show login popup to guest only and redirect logged in users?
- insert a WordPress page content into a pop up
- wp-login.php not working goes back to home page
- Custom login method appears to ignore auth_cookie_expiration
- Cannot login to WP after force recovery
- redirect_to not Including Hashtag from URL
- Login / Register for specific pages
- Problem with footer and login
- Simplest way to create two private sections each with a common account
- Login from Mobile Phone
- Can i login with only one account to different top leveled domain wordpress web sites?
- Users cannot log in using popup