Registering without e-mail adress!

WordPress registration process is based on the use of email. You can create your own registration page, and use fake random email just to fill the required email field, but you need to custom code registration process up to a point. How will you reach your users, if you have no way to contact them?

How do I show errors after validation with a custom form frontend?

This is a pretty basic solution. First I am assuming that you are not saving the data/form, and just returning to the same page.. In your $formContent you would do something like this. <?php $formContent=” …. <tr> <th><label for=”email”>Förnamn*</label></th> <td><input name=”first_name” id=”first_name” value=”” class=”regular-text” . $class_errors[‘first_name’] . ‘” type=”text”>’ . ( array_key_exists( ‘first_name’, $class_errors ) … Read more

auto assign sequence base username while registration

This all depends on how users are being registered on your site. TLDR The code below allows you to create custom users from admin area specifying custom usernames, or use GENERATE_CUSTOM_SEQ_USERNAME to generate sequential numbered one. If using registration form other than wp-login.php just set user_login to GENERATE_CUSTOM_SEQ_USERNAME and hide the field using CSS. If … Read more

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