Restrict certain roles registrations by domain

You’ll want to checkout the registration_errors filter. Make sure the role is being posted within the particular registration form. Instead of conditionally adding your action you have to check within the filter if role and email are valid. add_action( ‘registration_errors’, ‘wpse_248123_registration_errors’ ); function wpse_248123_registration_errors( $sanitized_user_login, $user_email, $errors ) { if ( empty( $_POST[‘role’] ) ) … Read more

Local domain remap with proxy : Infinite 301 redirect, bad URL typo

Found the problem / the solution: while using the proxy, the servers variable REQUEST_URI is not the same using FoxyProxy, server var ‘REQUEST_URI’ return the full url: $_SERVER[‘REQUEST_URI’] -> “hxxp://mydomain.com/theurl” using windows host file, server var ‘REQUEST_URI’ return just the end of the url: $_SERVER[‘REQUEST_URI’] -> “/theurl” so I added this to the wordpress index.php … Read more

Question of the subdomain

You need install wordpress in your own domain. If you use the WordPress portal, all of sites be accessed this way. You can install on Go Daddy or something similar. You need buy a domain to install WordPress. After you buy your domain (can be yourcompany.com, for example) you must install WordPress in your domain … Read more

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