How to put WordPress website behind the credential for visitors?

I have put the following code in index.php file. It’s working fine as I was looking. define(‘WP_USERNAME’, ‘PassW0rd$2017’); $error_msg = ”; $status = session_status(); if (PHP_SESSION_DISABLED === $status) { // That’s why you cannot rely on sessions! // return; } if (PHP_SESSION_NONE === $status) { session_start(); } if (isset($_SESSION[‘user_name’]) && $_SESSION[‘user_name’] != ” && $_SESSION[‘user_name’] … Read more

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

Lost Your password Hook Not Showing Up

you can use wp_lostpassword_url, or you can directly echo it wherever it’s required just by <br /> <a href= “https://wordpress.stackexchange.com/questions/306570/<?php echo wp_lostpassword_url(); ?>” class=”neolog”><?php _e(‘Not a member?’,’text-domain’); ?> <span><?php _e(‘Request an invitation.’,’text-domain’); ?></span></a> You can visit WordPress Codex for more info.

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