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

learn more… | top users | synonyms

5
votes
5answers
21k 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 ...
5
votes
4answers
5k 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? ...
5
votes
3answers
2k 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
1answer
2k 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
1answer
538 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. ...
4
votes
2answers
56 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 ) { ...
4
votes
2answers
4k 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 ...
3
votes
3answers
8k 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 ...
3
votes
2answers
2k 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 ...
3
votes
1answer
1k 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 ...
3
votes
3answers
937 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 ...
3
votes
1answer
200 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". ...
3
votes
1answer
126 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 ...
3
votes
1answer
724 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 ...
2
votes
4answers
8k 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: ...
2
votes
2answers
5k 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 ...
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
2k 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 ...
2
votes
2answers
1k 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
1k views

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

I need to add this: <script> jQuery(window).load(function() { ...
2
votes
1answer
61 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 ...
2
votes
1answer
2k views

Modify Wp-Login Labels: Username to Email

Simple straightforward, question: 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 ...
2
votes
2answers
10k 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 ...
2
votes
4answers
8k 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: ...
1
vote
6answers
19k 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 ...
1
vote
3answers
6k 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 ...
1
vote
1answer
80 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
1answer
320 views

How to trigger a login form notice message?

How can I trigger a message box to appear on the login form? I'l trying to get the little yellow notice bar to appear above the login form conditionally. The below code only print the content on the ...
1
vote
1answer
3k views

Custom Login and Registration form in Ajax

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

Allow access to a page for admins only

I need to know how to make a page template in WordPress that can only be accessed by admins. How could I apply it to the following template? <?php /* Template Name: Agency Area */ ?> <?php ...
1
vote
1answer
784 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
217 views

How do I force “users must be registered and logged in” on subsites?

So now I have finally found plugins for social network login that works on my web hotel. (The Nextend plugins.) :-) I have set "users must be registered and logged in to comment" on the main site ...
1
vote
1answer
210 views

Wordpress custom login page

I found a little article on how to create a custom Wordpress Login page and I am wondering if this technique/practice is safe to use? The article: ...
1
vote
1answer
5k 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 ...
1
vote
3answers
595 views

How to bypass the username as a required field in registration and just use email address instead?

Is there a clean way of doing so? I would prefer doing that in functions.php using some action and/ or filter hooks. The 2nd-best option would be using some good plugin out there. (I haven't seen 1 ...
1
vote
1answer
180 views

The comment login form is visible to me but not to the user

I am beginner in wordpress & i am working on my own blog ( http://cssground.com/ ). Right now i am facing an issue with the comment form. The comment form is visible to me & it's work fine but ...
1
vote
2answers
217 views

Load .txt file for login_message in wp-login.php

How do I load the contents of a text file - or any other file, like .php - and use the test for the login_message hook that prints a message above the #login box in wp-login.php? (BTW, this is in a ...
1
vote
1answer
3k views

Making the wordpress login form a jQuery dropdown

I'm using a plugin called sidebar-login to display a wordpress login form (it uses wp_login_form) in my sidebar. However, I feel like it the actual form (textboxes and labels) take up too much space ...
1
vote
2answers
655 views

deny IPs from wp-login using .htaccess

i am trying to ban a spam bot IP from my wordpress, since the "limit login attempts" extension mails me multiple times every day, that the same IP is trying to login. so i added the following to the ...
1
vote
2answers
481 views

Using /wp-admin works, using /login gives a 404. Why?

I just did a manual install and tried to login, but was unable to do so using domain.com/login. I got a 404 error. When I used domain.com/wp-admin, no issues. Did I do something wrong or forget to do ...
1
vote
1answer
61 views

Add class to input form in login form

is any way to add custom class name to input field in login from in wp_login_form function? <input type="text" name="log" id="' . esc_attr( $args['id_username'] ) . '" class="input" value="' . ...
1
vote
1answer
98 views

Is there an earlier hook than login_head or login_enqueue_scripts?

What I have: A basic plugin that enqueues a style-sheet and JavaScript file to modify the log-in forms. The logo, colour scheming and other styles are affected. My problem: As the /wp-login.php ...
1
vote
1answer
42 views

How do I replace “Username” in the Wordpress login form?

I would like to replace "Username" in the Wordpress login form with another word. How do I go about doing that?
1
vote
4answers
1k views

Replace wordpress login logo with custom text

I wanted to replace the wordpress logo which is displayed on login screen with some custom text. Here is the code what I tried so far: function my_custom_logo() { echo '<style ...
1
vote
1answer
1k views

Custom Login iframe doesn't work

I have a custom login window that I am building. The client requires a modal window for the login, so I have to use HTTP (for performance) for the regular page, and HTTPS for the login window (in the ...
1
vote
2answers
963 views

Wp-login appears White Screen, Error: Cannot modify header information

Possibly duplicate of many Question, the reason I am posting here none of them helps, here is the log which appear on Wp-login.php page. Notice: automatic_feed_links is deprecated since version 3.0! ...
1
vote
1answer
2k views

wp_login_form() redirect not redirecting users < admin

Any user that is not an admin is not being redirected to the defined URL with an instance of wp_login_form(). $args = array( 'echo' => true, 'redirect' => site_url( '/chat/' ), ...
1
vote
1answer
67 views

How to Get Logged-in to “Remote WP Site” from my local script (in Same Browser)?

In Wordpress, is it possible: To "make my current browser" to get "logged-in" to the a WP site, from a script in my localhost? Means, i will be running a script in my localhost: ...
1
vote
3answers
6k views

Redirect user after login/registration globally

How it possible to redirect all users, even administrators after login to specific page? And also redirect users after successful registration? Any simplest way? For example I want to redirect users ...
1
vote
1answer
262 views

Autologin only working the second time

I want to auto-login visitors to WP through email links. I use a "userid" parameter with their email and a "redirect_to" one to know where to point them. There are some protected areas in the site, ...