Questions tagged [login]

Refers to the act of gaining access to a WordPress site, as well as the WordPress account itself.

0
votes
0answers
3 views

Password not resetting on wordpress?

I've repeatedly tried to reset my password on the Wordpress site according to their help site but it never changes despite not throwing an error. Attempting to reset my password through the 'forgot ...
0
votes
0answers
8 views

unable to login [on hold]

Warning: Cannot modify header information - headers already sent by (output started at /home/negrowea/public_html/wp-config.php:1) in /home/negrowea/public_html/wp-login.php on line 453 Warning: ...
0
votes
1answer
16 views

Change Login or Logout text based on status

I'm trying to display text in a button in the header that says "LOG IN" or "LOG OUT" depending on the visitor's status. The button calls a slider action, so I just need to change the text displayed on ...
0
votes
0answers
18 views

Troubleshooting logging into the backend (wp-admin)

I have a Wordpress website on a cloud plan at Siteground. I switched the website to WPML recently. Since then, my main user (the blog author) has been unable to log into the website backend (wp-admin) ...
-2
votes
0answers
12 views

How to Make “Login to see prices” Text as a Button?

I'm customizing my first site and for logged out users I want prices to be hiden and instead to be shown "Login to see prices". This guide solved it but the message "Login to see prices" is shown as ...
-1
votes
0answers
11 views

Forget Password via Wordpress Rest Api

i have tried to find service to Forget password and sent code to user phone number to update password in my android app via wordpress rest api ...but cant find solution ..anyone can help me
1
vote
1answer
20 views

Login error redirecting to wp-login page

I have a custom login page for a blog. If the user gets the logins incorrect then its re-directing them to wp-login page, but I'd like the error to be echoed out on the custom login page - is that ...
0
votes
1answer
23 views

Theme My Login Shortcode Doesn’t Return Anything

I have created a new page with the slug /login. In this page I have added a short code: [theme-my-login action=“login” show_links="0"] And in the TML plugin settings page, I have set the right slug ...
0
votes
0answers
13 views

Login/reg how to - help me I Im new

in my wp - woocoomerc, I would like to make that when the client logs on the web page. I want her name to appear in TOP BAR. The customer must know that it is logged in. The name or picture should ...
0
votes
1answer
15 views

How to redirect user to Referrer Page using wp_signon in Custom Login Page in WordPress

I have created a Custom Login Page using wp_signon in WordPress. The code is working fine. The only issue is I am not getting as to how I redirect user back to the Referrer Page after login. ...
0
votes
1answer
14 views

Create simple login access for specific page [on hold]

I need to restrict access to a specific page on my website. I do not need to allow these 'customers' to register (so no need for a registration page setup) and instead can provide them with their ...
0
votes
1answer
35 views

Does WordPress (or a plugin) reveal login credentials to admin?

I just tried to login to an old WordPress site of mine. I forgot that I already sold the website. I tried logging in, using my login credentials, but obviously I wasn't able to login. Now my question ...
0
votes
1answer
21 views

Set logged in user based on API response

I have an external application that I want to redirect to a page on a wordpress site. The page needs to be different based on who is logged in. The application has an API endpoint which I can call ...
0
votes
0answers
12 views

is_user_logged_in() working only for admins and not other roles

I made a custom admin bar that is displayed only for logged in users. But I just noticed that with "is_user_logged_in()" function it works only for admins and not contributors or spectators. Here is ...
0
votes
1answer
9 views

How can change user_login per user_nicename [on hold]

I really aprecciated our help How can I replace the content of "user_login" field with the same content of "user_nicename" in table wp_users? All user_login currently appear as "admin" How would ...
0
votes
0answers
14 views

Refresh page after login with litespeed cache

I am using the litespeed cache plugin and ajax login plugin. The page does not refresh after users log in. it actually seems to be refreshing, but no. I can not. // $form.data("action") for get ...
1
vote
0answers
26 views

How to fix 'Wordpress redirection loop problem in wp-login.php page'?

When I am going to the wp-login.php page of my wordpress website, the login form is not showing. Instead I can see its redirecting back infinitely to the same page. I am confused why suddenly this is ...
0
votes
3answers
50 views

Redirect after login based on user role (custom login page)

I created a custom login page and everything is OK but there is an issue. I want to redirect users to different pages based on their roles after login. My code is below but I do not know why it is not ...
0
votes
0answers
16 views

Extend Cookie with auth_cookie_expiration not working

I was trying to extend the Login Cookie with the following Code function expiration_filter($seconds, $user_id, $remember){ //if "remember me" is checked; if ( $remember ) { //WP ...
0
votes
0answers
16 views

Redirects to wrong address after logging in

Few days ago, I couldn't access admin page of my WP website, When I clicked buttons 'log in' or 'Get new password', it redirects to another IP address, not my domain or hosted IP address. I think ...
0
votes
1answer
22 views

Advice on redirect to lock site from unauthorized users

Looking for some advice on the below function. I have a web app type site built in WP. There is nothing on the site relevant to non-users, apart from the login form on the homepage. I've got some ...
1
vote
0answers
20 views

Admin user getting message 'You need a higher level of permission'

I’ve just created my new WordPress web site ( uttoxeter.com ) It worked well for a while but now if I try to modify / edit anything I get asked to log in again and when I do it says that I’ve ...
0
votes
0answers
12 views

Wordpress Multisite Login Redirecting Too Many Times

I know that this question has been asked before, but none of the solutions that I have found has solved my problem. I just installed a brand new multi site from scratch on my IIS server using sub ...
0
votes
0answers
16 views

Special link for no automatic login (no username and no password)

My goal is: Login to different wordpress sites of mine without any steps other then pressing a link. So for example the link will be: https:/domain.com/wp-login.php?username="admin"&password="...
0
votes
1answer
18 views

Updating user meta data from external link, user not logged in

My login process is exactly like this: 1- user put email in the form 2- a link sent to email for setting password 3- user click on the link and redirect to website with code like this: https://www....
0
votes
0answers
13 views

Session Experies and Get Logged Out Within Few Minutes

I have wordpress simple blog with few plugins installed. My problem is that after logging and working for few minutes (hardly 2-5 minutes), session expires and I get logged out of the admin area. ...
0
votes
2answers
21 views

I am not able to login to my wp-admin panel

I changed my Wordpress folder name in htdocs as localhost/ecom/ and now when I try to access localhost/ecom/wp-admin/ it shows page not found
1
vote
1answer
17 views

Redirect user to previous page after signup from custom form

I've looked on here and found lots of references to this, but none have worked for me, probably because there must be something in the custom code I am modifying that I don't quite understand. Having ...
-1
votes
1answer
18 views

Trying to create a log in system but getting error “Parse error: syntax error, unexpected 'else' (T_ELSE) ” [closed]

I have directly copied the code from a tutorail video that I have been watching and even got a hold of his code files and directly copied and pasted just to make sure but this error keeps popping up. ...
0
votes
0answers
13 views

Share Login WordPress Multi sites

How do I share logins with WordPress MultiSite? Please don't mark it duplicate cause I have never seen a post with Multi Site. I only see multiple sites. I have 5 multi-sites. I have a main site with ...
-2
votes
1answer
15 views

Unable to login after adding ReCaptacha without API key

I was try to add recaptcha but accidently I got logged out and now I can't loogin to my wordpress. Please help me.
0
votes
0answers
26 views

WordPress password reset not working

First off, the site is a cloned site. I can login to the source site no problem, with 2 different accounts. But on the cloned site, neither login works. I tried resetting the password, and the ...
1
vote
0answers
23 views

How to debug my custom login form looping intermittently

I have a custom log in form for users of my website where they can log in then view some information that related to them. The problem is sometimes this form will loop. I will get the message "login ...
0
votes
1answer
47 views

Different Domains in Multisite Setup

I am using WordPress multisite setup to set the following structure example.com sub1.examples.com example.net Note that this is a single multisite setup, but it has two main domains and a subdomain. ...
0
votes
0answers
77 views

Can't login to wordpress, got ERR_EMPTY_RESPONSE after a few minutes

I have a problem, maybe you can help me. I tell you what happened. I own a Wordpress site. I bought SSL from my host, but it always got timeout on HTTPS. They recommended me to install a 'really-...
1
vote
1answer
33 views

Adding body class to login page?

I can't figure out for the life of me how to add a custom body class to the WordPress login page. I found this thread, which suggests using the admin_body_class along with this one to check if the ...
0
votes
1answer
33 views

WordPress “wp-admin” redirecting to a user account login

I’m getting a very strange error. When I try to log in to the back-end of WordPress at the address mysite.com/wp-admin, to access the back-end, I am automatically being redirected to mysite.com/login....
0
votes
0answers
45 views

How to set JWT token with PHP on successful login?

I'm creating a decoupled application: the frontend is built with React, the backend uses Wordpress. However, due to some limitations the login and registration frontend pages must use a Wordpress ...
0
votes
1answer
24 views

Prevent Subscriber Role to login

How can I prevent a Subscriber to login? I want to prevent the user role.
1
vote
0answers
30 views

How can I force the user to log in, even if they're already authenticated?

I am creating a link to a Wordpress page. In this scenario, multiple users may use the same machine and get confused about who is logged in, so every time they follow the link they must be forced to ...
0
votes
0answers
25 views

how to allow login from ONLY one specific user

I'm trying to allow the login (and wp dashboard access) to a specific user/admin by using this function but something is missing or I'm doing something wrong.. function redirect_non_specific_user() { ...
0
votes
0answers
149 views

How to Clear PWA cache when user Logs in or Logs out with SW

My site shows different content for logged in user and logged out user. The PWA troubles because the aggressive service worker cache shows logged out user content even after user logs in. Is there ...
1
vote
1answer
18 views

Change username before login

How to change username before submitting in login form ? I have used mobile number as username when a user registers in site. also I have removed 0 from the beginning of the mobile number. Now in ...
0
votes
1answer
16 views

How can I redirect wp-login.php but still allow logout and other actions?

My goal: Redirect visitors who go to wp-login.php (or who try to register) to the homepage. But still allow wp-login.php to function during certain actions like logout, lostpassword, and for password ...
0
votes
1answer
66 views

wp_get_current_user does not work properly on log in page

Desired Outcome I am developing a plugin that should redirect the user away from log in page if they are already logged in. So if anyone goes to example.com/wp-login.php and they are already logged ...
0
votes
1answer
25 views

I cannot login and am getting this error message. .

Warning: ucwords() expects exactly 1 parameter, 2 given in /home/content/90/8526290/html/KATHLEENKLEAN/wp-content/plugins/elementor/includes/autoloader.php on line 151 I have rest my cookies and my ...
0
votes
1answer
17 views

Adding HTML to login page under the body tag

Is anyone aware of means to add html directly under the body tag on the wordpress login page, ideally using functions.php? I'm aware of the various hooks and filters listed in the codex, but I have ...
0
votes
0answers
26 views

Redirect after login depending on the URL

I am having issue with this part of my function: The idea here is to set the URL to ?login=true if the user logs in via wp-login.php. But if the user visits a restricted front end page which contains ?...
-1
votes
1answer
30 views

Create a Custom Login System in WordPress [closed]

Please I need help with this. I wrote a basic code to create a login form that will validate, retrieve data and display on my dashboard but I have the following challenges: It always displays "...
0
votes
2answers
26 views

Prevent Wordpress Automatic Logout

I am using this function which is supposed to prevent wordpress from automatically logging me out. However, I am still being logged out every so often. function my_logged_in( $expirein ) { return ...