How can I have user registration verify a whether a new user is listed in a table of pre-approved users?

There is a registration_errors filter, which native errors go through and which allows you to provide your own. Returning filled in WP_Error object in this filter will smoothly prevent user from being created. The one downside is that that filter is not passed much additional data — only login and email. You will probably have … Read more

SMS registration and login [closed]

OTP Verification plugin verifies Email Address/Mobile Number of users by sending verification code(OTP) during registration. It removes the possibility of a user registering with fake Email Address/Mobile Number. This plugin checks the existence of the Email Address/Mobile Number and the ability of a user to access that Email Address/Mobile Number. I have not used this … Read more

WordPress Registration Email by Role

Scroll down a little bit, most of it is WordPress default code but you must add everything to your plugin or you might break it! I’ve also added few useful snippets below. Copy-paste them to same plugin. <?php /* * Plugin Name: Emails * Plugin URI: http://www.your-site.com * Description: Different registration email for different roles … Read more

How to save additional user data as part of the registration process?

In the function that you’re hooking into user_register, you need to create the user and save the values. First, I’d recommend using wp_insert_user() instead of wp_create_user(). You might do something like this: $userdata = array( ‘user_email’ => $email_address, ‘user_login’ => $user_name, // this is automatically salted ‘user_pass’ => ‘plain_text_password’, ); // this function returns the … Read more

Create register form without a plugin

In your PHP, use wp_create_user(). With this function, you can pass username, email and `password’. Then, wp update user() to give the user the other bits of info. I would hook my user-creation function to the init hook. Also, you want to put a nonce field in your form e.g. this, between the <form> tags: … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)