Questions tagged [wp-login-form]

Provides a simple login form for use anywhere inside your theme or plugin (in public/guest facing requests).

Filter by
Sorted by
Tagged with
16
votes
6answers
47k views

How can I redirect user after entering wrong password?

I'm using wp_login_form() to display login form in a jQuery dialog window. If user enters wrong password, the user is taken to the backend. I don't want that. Is there a way to notify user that he ...
15
votes
17answers
54k views

Unable to login to my wordpress site. reauth=1 redirection loop. Any ideas on how to fix this?

I am having some difficulty logging into my WordPress site. When I attempt to visit example.com/wp-admin, I see a blank page and the url bar changes to: http://example.com/wp-login.php?redirect_to=...
9
votes
9answers
65k views

Disable Or Redirect WP-login.php

Is there a way to prevent visitors, whether logged in or not, from reaching mysite.com/wp-login.php? I have a separate login form which is all we need. I know I can re-style the form generated by wp-...
8
votes
5answers
20k views

wordpress redirect after password reset

I would like to able to redirect to get_bloginfo('url'); after reseting password. But I cannot for life of me find any simple answer or function to do this. Does anyone know if this is possible? ...
7
votes
1answer
14k views

Prevent wp_login_form() from redirecting to wp-admin when there are errors

I have made a login form on the front-end of my site using wp_login_form(). However, when the user types in an incorrect username/password they are redirected to the wp-admin login form. How can you ...
6
votes
3answers
10k views

The website cannot display the page

First post on here. I am a developer for the company I work for and we have a word press site that is public (we host it). For this query lets say the url is http://mywordpresssite We have just ...
6
votes
1answer
3k views

Disable WordPress 3.6 idle logout / login modal window / session expiration

I manage a WordPress site hosted at WPEngine that was recently force-upgraded to version 3.6. The upgrade introduced "In-line login following expired sessions", and therein lies the problem. The ...
5
votes
4answers
22k views

Custom login form

I am very new to WordPress. I am trying to display a login form in the header section of my website. However, when I look at all of the files in my directory it is very overwhelming and I am afraid to ...
5
votes
3answers
7k views

How do I change the language of only the login page?

My wordpress blog is set up as de_DE. This means that my login page is also displayed in de_DE. I would like to only have the login page in en_US. So, How would I programmatically change a single ...
5
votes
3answers
3k views

Avoid to load default WP styles in login screen

Is there some way to avoid the load of default WordPress styles in login screen to only load my custom stylesheets? Actually I'm using this code: function login_styles() { // Sets the styles if ...
5
votes
1answer
3k views

Adding “Remember Me” in custom login

im currently using an ajax login i found here: http://wpsites.org/wordpress-ajax-login-and-register-without-a-plugin-10835/ Everything works perfectly fine. However i'd like to add a "REMEMBER ME" ...
5
votes
2answers
18k views

How build a custom login/register form with error handling?

So, I'm working on a plugin in which I'm making a custom page containing a login form as well as one for user registration; I have the forms built and operational, below is my code. <!-- Begin ...
5
votes
1answer
1k views

Custom ReCaptcha Login

I'm trying to add ReCaptcha to my login page. I know there are many many plugins by per request I cannot use plugins. So far so good, I'm able to add the Captcha to my login but unable to show errors. ...
5
votes
2answers
21k views

Can not login with correct username and password

I can not access to Wordpress dashboard with correct username and password. If I give any wrong password it's not showing any error message for the wrong. When I press on Log in button then the same ...
4
votes
4answers
386 views

adding rewrite rules in .htaccess

I was reading this answer, and tried to used its guide to hide login page. It suggest to edit .htaccess file of my website to something like this: RewriteEngine On RewriteBase / ##### ABOVE THIS ...
4
votes
4answers
25k views

Change Login URL Without Plugin

I want to change the login url of my Wordpress install away from /wp-admin.php I am aiming to do so and am looking at changing the .htaccess file to add in: RewriteRule ^login$ http://yourdomain.com/...
4
votes
1answer
759 views

Clarification on auth_redirect()

Trying to secure some pages redirecting non-loegged-in users to the log-in page, i found auth_redirect() function here Docs says "Checks user is logged in, if not it redirects them to login page". ...
4
votes
1answer
342 views

WordPress AJAX Login Screen

In recent versions of WordPress, when you have been logged in to the dashboard a while with the page still open, WordPress times out your session and opens a login box. This box appears in a little ...
4
votes
1answer
2k views

Logout/login redirect CSS issue

I'm using WordPress Multisite. When I use wp_logout_url(), I get redirected to the login page but somehow I end at a different login page without any styles applied <a href="<?php echo ...
4
votes
1answer
5k views

Multi-steps WordPress registration : in 4 steps how to?

I saw in several WordPress sites up on registration that the registration process is in 3 or 4 steps. how can i implement such process to my theme? ie: choose your role + fill in register form----> ...
4
votes
1answer
9k views

I want to disable E-Mail verifcation / activation when a user signs up for my Wordpress site

when a new user registers an activation link is sent to his e-mail account. I want the user to enter his username, email address and password and straight register and be logged in without ...
3
votes
1answer
5k views

How to override wp-login.php

I would like to override the default WordPress Login page: wp-login.php. The reason is that, I want to write some custom code at the top of the file, that checks some conditions in the backend, and ...
3
votes
3answers
1k views

Change “You are now logged out” text

I want to wrap <strong></strong> around the words "logged out": add_filter( 'gettext', 'wpse17709_gettext', 10, 2 ); function wpse17709_gettext( $custom_translation, $login_texts ) { ...
3
votes
4answers
10k views

Modify wp-login.php labels: Username to Email

How can you edit the labels of the wp-login.php form? I am using emails for logins, so I need to change username to email. The answer here seems to be out of date, or just doesn't work with SSL or ...
3
votes
1answer
2k views

login_enqueue_scripts does not ovewrite the default styles

UPDATED: The solution is to use login_head if you need to overwrite – @Jevuska After updating to WP 4.5 my styles to customize the login page do not overwrite the default WP styles. Here's my code: ...
3
votes
1answer
2k views

How to change “Registration complete. Please check your e-mail.” in wp-login.php

I want to override the phrase "Registration complete. Please check your e-mail." without modifying the core code in wp-login.php Does anyone know what the add_filter() or add_action() might look like?...
3
votes
2answers
4k views

Action wp_login_failed not working if only one field is filled out

I created a login form in the frontend with wp_login_form(). In my functions.php file I added an action to prevent the redirect to /wp-login.php if the login failed with add_action('...
3
votes
2answers
224 views

How to customise wp-login.php only for users who are setting a password for the first time?

As administrator, if I make a new user, I can choose to email my new users a link which they click to go to wp-login.php where they are invited to set their password for the first time. (Wordpress ...
3
votes
1answer
1k views

Custom login form redirect to external site

I created a private page, but this page needs to be more than just available by entering a code for a page that has been listed private in the Publish settings of Visibility, so I created a page and ...
3
votes
3answers
2k views

custom login page redirect to logged in user profile page

If I click on sign in then it should go to the login page. The issue is that when I put the link then it goes to redirect_to home page, but I want to go on user profile page instead. I don't want to ...
2
votes
4answers
10k views

How to redirect all requests to wp-login.php?

I created some custom login/registration template pages and now I want that every request to wp-login.php to be redirected to a custom url. Now I have something like this: add_action('init','...
2
votes
2answers
1k views

Login with email (WP Modal Login)

I'm trying to fork this plugin to use the user email to login, as opposed to Username. The plugin is http://wordpress.org/plugins/wp-modal-login/ Is there a nice way to do this, perhaps by a filter ...
2
votes
1answer
4k views

How can I add a custom script to footer of login page?

I need to add this: <script> jQuery(window).load(function() { jQuery('.janrainContent').css('border','0px');jQuery('.janrainContent').css('width','252px');jQuery('#janrainAuthReturnExperience')....
2
votes
2answers
2k views

Check if user is logged in else login page

I like to secure a certain page for admins. How do I check if a user is logged (and is admin)? Of their not logged in, I want to show the login module.
2
votes
1answer
10k views

How to get login data (session) outside WordPress?

I guess WP uses a PHP session (or a cookie) to save login data, right? I have a website, which uses WP as a CMS, but display (and create) content from outside. I allow anonymous posts, by simply not ...
2
votes
3answers
1k views

WordPress Login Footer URL

I want to change the url of the Wordpress 'Back to XXXX' on the wordpress url. I've used this function to change the logo url, but there doesnt seem to be a footerurl reference. add_filter( '...
2
votes
2answers
1k views

Remove “Remember Me” from login form

I have a form that is on the front end of my site. I'm trying to remove the "Remember me" checkbox but can't get this to work. Here is my form code. <?php $args = array( 'echo' ...
2
votes
1answer
2k views

Making Wordpress' page and menus visible only for logged in users, checking session variables

I'm trying to login users in wordpress through an API of another platform, so what I do is use an ajax function to call an external API sending the user credentials (username, password) and getting ...
2
votes
1answer
1k views

Enqueue style for Password Reset page

I've enqueued a style for my WordPress login page like so: function login_stylesheet() { wp_enqueue_style( 'custom-login', plugins_url( 'style-login.css', __FILE__ ) ); } add_action( '...
2
votes
1answer
33 views

Blocking access to wp-login via htaccess not working

Some time ago I installed the Limit Login Attempts Reloaded plugin and it's working fine. However because I was getting SO many unauthorized login attempts I also implemented an .htaccess password ...
2
votes
3answers
505 views

Attach to wp-login.php and xmlrpc.php

I am receiving many requests to my wp-login.php and xmlrpc file, now I just set up an htaccess to prevent requests to xmlrpc, but how do you suggest me to block wp-login? thanks
1
vote
4answers
11k views

Can't access wp-admin

When trying to login one of my WP installs (regular WP 3.4.2-no multisite), I keep being redirected to the wp-login.php file. I've checked nearly everything: Password is correct and changed......
1
vote
2answers
17k views

change register url on wp-login page

I am just trying to change the url of "register" on wp default login page(domain.com/wp-login.php) I want to change the url on register link. when you are on domain.com/wp-login.php?action=register, ...
1
vote
3answers
3k views

Remove lost password form and URL

I've shut down password resets for all users. I now need to prevent /wp-login.php?action=lostpassword from doing anything should anyone manually input the URL into their browser. i.e. I don't want ...
1
vote
3answers
6k views

FORCE_SSL_ADMIN not working

Any ideas why define('FORCE_SSL_ADMIN', true); wouldn't work? I'm not getting any errors at all, but a http request to example.com/wp-admin isn't redirecting to https
1
vote
3answers
4k views

How do you add a custom link to the wordpress login page?

http://redrokk.com/wordpress/wp-content/uploads/2012/07/blank_wordpress_login_form1.png I want to add a custom link before the 'Lost your password?' link. I'm currently using a function that has some ...
1
vote
3answers
3k views

Change 'Back To Website' link in wp-login.php

The login form on the page wp-login.php has a link at the bottom that says "Back to website-name" This link always redirects to the home page I would like it to redirect to the page the user has come ...
1
vote
1answer
5k views

Custom Login and Registration form in Ajax

How to create the custom login/Registration form using AJAX.
1
vote
1answer
1k views

Redirect away from login page

I'm trying to find a way to prevent the login screen from showing up when user makes a mistake filling out the login form. So, right now, I have the login form printed on a custom template. But if ...
1
vote
1answer
7k views

How can I modify the default reset (lost) password email text?

I found some similar questions on here, but was unable to apply the solutions that were provided. The standard password reset email that Wordpress is sending does not provide a clickable url for ...

1 2 3 4 5 6