Articles of wp login form

reset password label text change

Please see my screenshot. I want to change the “New Password” label text and “login” text. I used following code to change the hint text. function change_password_hint ( $text ) { if(basename($_SERVER[“SCRIPT_NAME”])==’wp-login.php’ && $text == ‘Hint: The password should be at least twelve characters long. To make it stronger, use upper and lower case letters, […]

Requiring wp-login.php sends headers automatically

I’m creating a custom password reset page on a site, and am trying to leverage retrieve_password() to send the reset email. Upon sending the reset email, I’d like to wp_redirect the user back to the login page with a flash message telling them to check their email. Herein lies the problem: If you take a […]

Send admin to a different login than users?

I have created a separate login page on /login/ and have wp-login.php redirecting there as well – I have also hooked into a few WP login related hooks such as wp_login_failed so that people get redirected there. However I have now decided I want admins to continue to be able to login from the standard […]

Changing the title of “<- back to” website in wp-login.php

The login form on the page wp-login.php has a title at the bottom that says “<- Back to website-name” This title then always redirects to the home page, but I want the title just reading “back to website-name” so I just want the “<-” removed. I imagine this requires a hook added to functions.php but […]

Where is the php file, that does the checks for login information?

I would like to add some additional checks into my wordpress website’s username and password authentication function for specific usernames, but I cannot find the correct php file… /* I would like to do something like this */ if ($username == “testuser_with_no_rights”) { /* … */ } else { /* do everything as it was […]

WordPress SSL not working

I logged out from wordpress site then, I edited wp-config.php and enabled SSL define(‘FORCE_SSL_LOGIN’, true); define(‘FORCE_SSL_ADMIN’, true); then restarted apache but on trying to open I got the is Not Found The requested URL /wp-login.php was not found on this server.

wordpress login without password just email address (NO 2 factor authentication with email)

I am looking to create a function filter or plugin to remove the authentication of the password for wordpress. The registration process for each user is done manually from the backend of wordpress (no frontend registration). So there would still be a level of authentication by just testing if the email is a valid know […]

Forcing frontend login with UI switch

Is there a way to force log-in even for viewing a WordPress blog that the blog’s owner can turn on and off by themselves? I can hardcode it in the template’s header.php like so: if ( !is_user_logged_in() ) { wp_redirect( wp_login_url() ); exit; } but this can’t be influenced from the blog’s administration page. There […]

Login and Forgot password in Lightbox

How do i get WordPress Login & Forgot password forms in one light-box which can then be displayed inside pages where the user has to be logged in to see the content? Can i just copy some of the code in wp-login.php and then put it in a light box and alternate between the forms […]

Prevent redirect on custom wordpress login form

I’m having a little trouble with a custom login form that I’ve created. <?php if (!(current_user_can(‘level_0’))){ ?> <div class=”login-form”> <form action=”<?php echo get_option(‘home’); ?>/wp-login.php” method=”post” target=”_blank”> <p> <label for=”log” id=”user”>Username</label> <input type=”text” name=”log” id=”log” value=”<?php echo wp_specialchars(stripslashes($user_login), 1) ?>” size=”20″ /> </p> <p> <label for=”password” id=”pass”>Password</label> <input type=”password” name=”pwd” id=”pwd” size=”20″ /> </p> <input type=”submit” […]