Create not-activated user in code, wordpress

WordPress does not have a active/deactivate function out of the box This worked for me to create users with aditional data. wp_insert_user(array( ‘user_login’ => $username, ‘user_pass’ => $password, ‘user_email’ => $email, ‘wp_user_level’ => $role, ‘show_admin_bar_front’ => ‘false’ //you probably won’t want normal users to see the admin bar )); http://codex.wordpress.org/Function_Reference/wp_insert_user Try adding a temporary role … Read more

Disable domain redirect

Check your .htaccess file, it has to look like this: RewriteEngine On RewriteBase / RewriteRule ^index\.php$ – [L] # add a trailing slash to /wp-admin RewriteRule ^wp-admin$ wp-admin/ [R=301,L] RewriteCond %{REQUEST_FILENAME} -f [OR] RewriteCond %{REQUEST_FILENAME} -d RewriteRule ^ – [L] RewriteRule ^(wp-(content|admin|includes).*) $1 [L] RewriteRule ^(.*\.php)$ $1 [L] RewriteRule . index.php [L] And wp-config.php has … Read more

Get plain password on register

I haven’t looked into it, but any hook on the page that processes the new user registration will have access to the $_POST data and as such you could get it from there. I agree with the other comments above, you should be able to use use the WordPress hash and check the password on … Read more

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