how to get password from user instead wp-generate-password

The problem related to the getting password from $_POST[‘register_password’] variable its must between parentheses like that: // Nonce is checked, Get to work $info = array(); $info[‘user_nicename’] = $info[‘nickname’] = $info[‘display_name’] = $info[‘first_name’] = $info[‘user_login’] = sanitize_user( $_POST[‘register_username’] ) ; $info[‘user_pass’] = ($_POST[‘register_password’]); $info[‘user_email’] = sanitize_email( $_POST[‘register_email’] );

How to call or add password input / generate password / password strenght meter in custom registration form?

You can add password input/ generate password / password strength meter in any custom registration form in admin area or front end area with simple code. In first step: Add this html code in your registration form <table class=”form-table”> <tr id=”password” class=”user-pass1-wrap”> <th><label for=”pass1″><?php _e( ‘New Password’ ); ?></label></th> <td> <input class=”hidden” value=” ” /><!– … Read more

Redirect to “Thank you” page after register new user on custom register form

OK, so it’s clear that the redirection won’t work in this case. You can’t output any HTML before sending headers, and redirection sends a header. The easiest (but bad) solution is to move you PHP code to the top of that page template: <?php /* Template Name: Register Page */ $err=””; $success=””; global $wpdb, $PasswordHash, … Read more

How to redirect new registrars to a custom registration page instead of WP default registration page?

Since wp-login.php control both login and registration, it is better to redirect the visitor to a login page from wp-login.php. You can use this code for redirecting your registration page – add_action(‘init’,’custom_registration_page’); function custom_registration_page() { $new_registration_page_url = home_url( ‘/register/’ ); global $pagenow; if( $pagenow == “wp-login.php?action=register” && $_SERVER[‘REQUEST_METHOD’] == ‘GET’) { wp_redirect($new_registration_page_url); exit; } } … Read more

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