Questions tagged [login]
Refers to the act of gaining access to a WordPress site, as well as the WordPress account itself.
1,578
questions
58
votes
14
answers
57k
views
Check if wp-login is current page
How can I check if the current page is wp-login.php or wp-signup.php ?
Are there more elegant solutions than using $_SERVER['REQUEST_URI'] ?
49
votes
7
answers
116k
views
Can I programmatically login a user without a password?
I'm manually creating users programmatically, and I want to sign in the newly created user. WP makes it easy to access the hashed password, but not the plaintext version. Is there a way to use ...
35
votes
2
answers
68k
views
Is there a hook that runs after a user logs in?
I am writing a plugin that fetches some extended user info from a remote service and I need it to execute its function each time a user logs in.
Is there a hook that gets fired after login that I can ...
33
votes
7
answers
83k
views
wp_enqueue_script was called incorrectly
I don't know how but now I am getting this error :
Notice: wp_enqueue_style was called
incorrectly. Scripts and styles should not be registered or enqueued
until the wp_enqueue_scripts, ...
31
votes
8
answers
121k
views
Can't log in: "ERROR: Cookies are blocked or not supported by your browser. You must enable cookies to use WordPress."
After a server move, I'm unable to log in to my site. I get the "ERROR: Cookies are blocked or not supported by your browser. You must enable cookies to use WordPress." error when I try submitting the ...
30
votes
2
answers
129k
views
What's the easiest way to stop WP from ever logging me out
After a certain amount of time WP logs out all users and forces them to log back in again. For development environments on my local machine this is obnoxious and absolutely unnecessary.
Is there an ...
29
votes
4
answers
54k
views
Is there any way to rename or hide wp-login.php?
Any way to change the wp-login.php url? It seems insecure that everyone that's ever used Wordpress could easily see if your site is using it, and get right to the login page.
There used to be a ...
25
votes
9
answers
46k
views
How to login with email only no username?
After searching for a couple of days and reading 2 year old threads I'm having difficulty finding a solution to the problem of having users login by email only.
At first I was delighted to see ...
24
votes
9
answers
82k
views
Check if user is logged in using JQuery
I want to execute custom jquery code which shows login dialog to user if he clicks a button and he is not logged in. How could I do that?
23
votes
8
answers
64k
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 ...
21
votes
3
answers
14k
views
Increase of failed login attempts, brute force attacks? [closed]
I Installed the plugin Simple Login Lockdown and since a couple of days ago the database is recording over 200 records by day.
I think that is not possible to have my site attacked by so many IP's
...
19
votes
9
answers
109k
views
Login page ERROR: Cookies are blocked due to unexpected output
I have a WordPress website that I recently discovered had this error on the login page:
ERROR: Cookies are blocked due to unexpected output. For help, please
see this documentation or try the ...
18
votes
4
answers
84k
views
Add "Logout" link to navigation menu
How can I add a link to the primary navigation menu with the class="right" attribute?
I tried to add a static link to example.com/wp-logout.php?action=logout but that leads to a logout confirmation ...
18
votes
7
answers
65k
views
Redirect user to original url after login?
I have a function that redirects users to the login page (home) if they're trying to access any other page without being logged in, here's how it works:
function restrict_access_if_logged_out(){
...
17
votes
1
answer
31k
views
Separate registration and login for different roles
I've set 2 new roles for my site using the "Members" plugin - "sellers" and "buyers".
Each role should have its own registration page and login.
A visitor can register as both a buyer and a seller ...