[Solved] WordPress Password Page – Wrong Password Message Not Working [closed]
[ad_1] Your logic isn’t right. If the cookie is set when this function is called, that means the hash didn’t match so it’s an incorrect password. function my_password_form() { global $post; $attempted = $_SESSION[‘pass_attempt’] ?: false; $label=”pwbox-” . ( empty( $post->ID ) ? rand() : $post->ID ); $wrongPassword = ”; // If cookie is set … Read more