Changing username after registration to get around the issue of having duplicate emails?

You can try this skeleton plugin: /** * Plugin Name: Allow duplicate emails on registration * Plugin URI: http://wordpress.stackexchange.com/a/125129/26350 */ add_action( ‘plugins_loaded’, array( ‘Allow_Duplicate_Emails_Registration’, ‘get_instance’ ) ); class Allow_Duplicate_Emails_Registration { private $rand = ”; static private $instance = NULL; static public function get_instance() { if ( NULL === self::$instance ) self::$instance = new self; return … Read more

Insert “New User” and update/set meta data at once

What you are best off doing is hooking into user_register and from there updating the user options you want them set to. Below is an example of disabling the admin bar for new users: add_action(“user_register”, “sc_set_user_admin_bar_false_by_default”, 10, 1); function sc_set_user_admin_bar_false_by_default($user_id) { update_user_meta( $user_id, ‘show_admin_bar_front’, ‘false’ ); update_user_meta( $user_id, ‘show_admin_bar_admin’, ‘false’ ); }

Custom registration form page/template

You can also take a look on Profile Builder Plugin, that allows you to customize your website by adding a front-end menu for all your users, giving them a more flexible way to modify their user profile or register new users (front-end user registration). You can add custom fields to your registration form and customize … Read more

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