Unable to Add User after Site Migration

Are there any errors showing up in the browser javascript console? Are you sure the migration process was properly handled? The files and the database were completely backed up and migrated? This migration process was made manually or by using a plugin? Have you tried to disable each of the plugins, one by one, while … Read more

Allow users to register on multisite through WooCommerce using the same email address

There is the option that you don’t allow the user to register on the main site, allowing them to register on the subsite only. The plugin network-subsite-user-registration allows this, if the user is already registered on the network then they are automatically added, by the plugin, to the site requesting registration. The hook that does … Read more

Registration page as homepage

You can create a shortcode for displaying a registration form and add it to a page or create a custom template with registration page layout. Once the page will be there, you can choose that page to display in home page from Setting >> Reading >> Front Page Display ( as in image ) From … Read more

How to restrict Admin from creating new users from Add new user screen in dashboard to only of one domain?

You can hook into registration_error and check if the user’s email is under your specified domain or not: add_filter( ‘registration_errors’, ‘user_email_checker’, 10, 3 ); function user_email_checker( $errors, $sanitized_user_login, $user_email ) { if ( !preg_match(‘#[@.]gmail.com$#i’, $user_email ) { $errors->add( ‘invalid_email’, __( ‘ERROR: Only “gmail.com” email address allowed.’ ) ); } return $errors; } This way you … Read more

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