Questions tagged [login]

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

Filter by
Sorted by
Tagged with
0
votes
0answers
14 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
43 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
24 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....
1
vote
1answer
19 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
14 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
34 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
36 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
25 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
70 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
131 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
52 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
40 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
96 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
31 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
26 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() { ...
1
vote
1answer
29 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
27 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
92 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
28 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
22 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
39 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
36 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
31 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 ...
0
votes
0answers
14 views

How can I use my theme's php file as a login popup?

I'm having listingpro theme. It uses popups.php file for its login popup. Now, I want to create a custom link through which user will be redirected to the login popup. So how can I use the popups.php ...
0
votes
2answers
169 views

How can I theme or style the lost password page without a plugin?

So I want to apply a theme and style the lost password page without the use of a plugin. I don't want it to show the default Wordpress lost password page. I managed to style the login form by ...
0
votes
2answers
25 views

Modify wp-login.php Labels Conditionally Based On Referring URL

I apologize if this is an easily answered question - I've been looking for a while and can't quite get my head around it. I would like to modify the first label for the wp-login.php page based on the ...
0
votes
1answer
24 views

https rewrite not working for All in one security Brute force > rename login url

I am trying to set 2 security measures that seems not to work together: https on the site, using a server redirect + Module rewrite in htaccess : <IfModule mod_rewrite.c> RewriteEngine On ...
0
votes
1answer
32 views

error at login page in wordpress

hi today my wordpress blog in wp-admin and wp-login.php had an error Notice: wp_deregister_script was called incorrectly. Scripts and styles should not be registered or enqueued until the ...
0
votes
0answers
102 views

WordPress custom ajax login not working on mobile browsers

I have a custom Ajax login/signup form which logs the user in and invokes location.reload() if the request is successful. My Ajax login works perfectly in desktop browsers using only the wp_signon ...
0
votes
1answer
79 views

On button click, redirect users to registration page instead of another page

I have a button that I have that leads users to a page on WordPress called /portfolio/, so is there a way that I can redirect users to the /registration/ page until their logged in? I'm using a ...
0
votes
1answer
44 views

Change Wordpress Login URL to External URL

Trying to change Wordpress login URL to an external Wordpress installation login page. I'm using the code below, but it can only redirect to a page or URL within the same site. I want it to redirect ...
0
votes
0answers
12 views

blog url is redirecting to wpadmin page if blog url is added into another domain

I am using WordPress version 4.9.8 and if I am using my blog URL(eg:example.com) to some another domain(eg:example2.com) as a referral link. When I open my blog URL from that, another domain so after ...
0
votes
1answer
20 views

Need help with AJAX login to call php in functions.php to handle redirects based on user cap (role)

I can't find the answer for my question anywhere. I am trying to make a login redirect script, after login the user (depending on their role) will go to a certain page. I have currently a working ...
0
votes
1answer
44 views

Echo Text If User Is Logged in But NOT the Author of post

i am coding a plugin, where user can subscribe to a indvidual author of post (like we do on YouTube). I want to display the subscribe link to all logged in users, but not the author of post. my ...
1
vote
0answers
30 views

Good way to block users within a multisite setup without deleting them?

This is probably a common problem with multiple possibilities to solve. However I am asking for an easy solution as I guess I am not the first one to have this problem. Assume we have a huge company ...
0
votes
0answers
70 views

Easy way to check auth_cookie_expiration setting in browser dev tools?

I'm trying to change the auth_cookie_expiration setting in my functions.php file in order to limit all logins to 2 hours. I've done the basic hook for this: function expire_in_120_minutes() { ...
0
votes
0answers
24 views

Redirect after login when WordPress in subdirectory

I've a problem in my Wordpress website which is after I login from /wp-admin I didn't redirected to anywhere just keep seeing the login page without any errors. it was working fine when the site was ...
0
votes
0answers
35 views

create post usin rest API only after user have been registered and logged in via ajax returns 403 cookie nonce is invalid

I have a 3 step form and the last step is register or log in step. If the user is already logged in the third step is not shown to him and after second step the form will generate post using wp rest ...
1
vote
1answer
41 views

Change login_message using title

I'm trying to add message on the login forms. How do I change the contents according to the page title or url parameters this code goes to my functions.php function custom_login_message() { $...
0
votes
2answers
731 views

Error “Sorry, you are not allowed to access this page”

I renamed plugins folder, removed unused themes, checked wp_capabilities for my website, It's getting error like below after login page and redirecting to home page.
0
votes
0answers
39 views

Wrong username or password error in wordpress

WordPress login works fine but when I want to do website login (i.e, As Customer username and password) I am getting this error "Wrong username or password". I have taken its backup and installed it ...
0
votes
0answers
42 views

How to set password protected cookie with ajax POST?

I've tried sending a post request to wp-login.php, but I'm getting a 406 error. I also tried copying the relevant parts of wp-login.php to my own script and sending the post there, but the cookie it ...
0
votes
2answers
88 views

How to use login_redirect with a user capability

The following code should redirect the user to a specific page if they have the manage_woocommerce capability or higher - but it doesn't and just goes to the main dashboard. add_filter( '...
0
votes
1answer
39 views

Can't login with any account - No error message shown

I'm trying to login to one of my Wordpress sites through the /wp-login.php link. When submitting the login form the page refreshes but does not re-direct to the /wp-admin.php dashboard. I've tried ...
0
votes
0answers
237 views

Redirect a login form, if referer contains URL query string parameter

I am trying to redirect a default WP login form, if it's HTTP referer contains some specific query string parameter. Scenario: I need to redirect new users (the ones who just created their passwords ...
0
votes
1answer
20 views

unable to Login to Admin

Warning: call_user_func_array() expects parameter 1 to be a valid callback, function 'no_wordpress_errors' not found or invalid function name in /home/cafereminiscence/public_html/wp-includes/plugin....