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
10 views

Redirect to custom login page if not logged in and redirect to home if logged in user try to login, how?

I'm developing a plugin and I need to redirect to not logged in users to a custom login page on frontend so I wrote: add_action( 'template_redirect', 'redirect_if_not_logged_in' ); function ...
0
votes
1answer
15 views

Customizing login error messages

Where and how would I be able to customize the login error messages? "Error: The username <> is not registered on this site. If you are unsure of your username, try your email address ...
1
vote
0answers
15 views

Why wp_update_user doesn't update user_activation_key on users with apostrophes in their email?

Wordpress currently allows apostrophes in email addresses. However, when a user with an apostrophe in their email tries to perform a password reset, the user_activation_key is invalid. It looks as if ...
0
votes
1answer
19 views

How to display custom logo on WordPress login page

I'd like to take a standard WordPress login page, change the WP logo to a custom image I create and that varies depending on site ID (WP Mulit-site). I've found this approach: WordPress login page ...
0
votes
2answers
37 views

Login fail with no error

For no apparent reason since this morning I cannot not log in my Wordpress website https://www.taoperf.com Yesterday it worked fine - since that time, no updates performed and no activity through wp-...
1
vote
0answers
20 views

Forgot Password/ Password Reset Page does not exist

I honestly don't know what happened but recently the "Forgot Password" page that you go to to reset your password (usually from an email link) no longer exists. The link that is sent by ...
0
votes
1answer
18 views

Check if user had autologin & if so, logout

I'm trying to create a function which autologins users, but upon visiting certain pages also performs an autologout if the initial login was obtained via autologin. I've written the following code but ...
0
votes
0answers
20 views

JSON API how to log in user

I am registering the user, generating auth cookie, validating it but don't understand how to login. After hours of googling found this https://yoursite.com/wp-json/wpapp/api/v1/user/login?auth=email . ...
0
votes
0answers
20 views

Redirect users with "." (dot) in their username and replace with "-" (dash) to correct profile

Im having problem with usernames that have '.' (dot) in their username and throwing 404 when try to access their profile page in front end. Can we replace this '.' (dot) with '-' (dash) because ...
0
votes
0answers
17 views

How to block website after login user

I want to write a plugin that works like this: after users log in on the website, They redirect to a page that asks them to complete their mobile number. and if they can't do that they can explore the ...
0
votes
1answer
45 views

wp_login_form() redirect same page

Im trying to redirect same page using wp_login_form(). this is my code function loginform() { if ( is_user_logged_in()){ echo '<p> <a href="'.esc_url(home_url('/my-dashboard/')).'" ...
0
votes
1answer
12 views

Can not login to wordpress site after resolving white screen of death

I had a white screen of death that I was somewhat able to resolve. I updated PHP from 7.0 to 7.3.2, removed BOM from wp-config.php, and deleted wp super cache plugin. From looking at others issues ...
0
votes
0answers
11 views

?login=failed Show message

I run a website running Wordpress 5.8. When you fail to login, the string ?login=failed shows. Is there any way to add a popup that tells the user their password is incorrect?
0
votes
0answers
16 views

Wordpress: Multiple Sites: Login loop only for certain users

my team and i are managing around 20 wordpress sites. Every site has a completely different setup (Themes, Plugins etc.). Strangely, since 3 days, a lot of my colleagues just cant log-in to the sites ...
0
votes
0answers
10 views

MU Network Login Redirect

So I have an MU install (Subfolder) that throws me into a login reauth anytime I try to access the Network Admin. The re-login url ends up like this and I am continually redirected to the login page. ...
0
votes
0answers
7 views

I have a form which is password protected. But I want users to be able to access it once they have registered with my site

I have a form which is on a password protected page. But I want users to be able to access it once they have registered with my site (giving them the chance to create a password). Most solutions ...
0
votes
0answers
49 views

Cannot login to Wordpress on one device: login refreshes/an error was encountered whilst trying to authenticate

I hope someone can help me with an issue I’m having. I’m trying to login to my WordPress dashboard but I’m constantly either getting the login page simply refreshing or occasionally an red error ...
0
votes
1answer
19 views

Blacklist and Whitelist on login

I have an SSO login/registration and I need to have a blacklist for a certain domain @test.com, but, if needed, some users with same domain can enter for one day or two following clients requests. Is ...
0
votes
1answer
25 views

Admin Panel 404 Error after login

well i've created a custom login page (NOT customizing orignal login page) and use the code below to log in users: if($_POST){ if (!empty($_POST['username']) && !empty($_POST['password'])) ...
1
vote
1answer
36 views

How to redirect user after login to a specific page?

I have a page with mixed content in three different tabs. The first tab is open access to all but the content of the last two are for logged in users only so by sending the users to login with: <p&...
0
votes
0answers
21 views

How do I change the language of the login page to Arabic?

I have a website where the backend is english and the frontend is Arabic. My wordpress login is in English but i want to make it Arabic. I have tried the first solution listed here How do I change the ...
0
votes
1answer
32 views

How force Wordpress redirect to current custom page after login

Problem: After login Wp redirects to either wp-admin or home (front-page.php) and not back to current page I want the user to return to where he/she came from. Ok, so this is what I've got: I have a ...
0
votes
0answers
24 views

WordPress site login Redirect

I try to log in to my WordPress website, It logs in but when I try to click anywhere in the dashboard, it redirects me to Login Page again. What would be the reason, what steps I follow to keep login ...
0
votes
2answers
30 views

Is there a way to call via javascript if a user is logged-in on a static html file?

I am using Wordpress/Woocommerce for my website along with jekyll (static html generator). I want to change a button based upon user logged in or logged out. \\ if user is logged in <button>Log ...
0
votes
1answer
18 views

WP-admin or any other is redirecting me to (This page doesn't seem to exist.)

I am logging in to my website with URL/wp-admin or other methods but it is redirecting me to ( This page doesn't seem to exist. ) here. Please guide me on how to do I log in to my website. See the ...
0
votes
1answer
18 views

Hide a Post everywhere except on redirect

I have many user contactmethods on my Profile page. If the user has not completed them all, then every time they log in they are supposed to be redirected to a "Reminder" post. But I want ...
0
votes
0answers
82 views

What are the best practices to achieve cross-domain interoperability and transparency in aggregate data through a uniform, hashed user naming schema?

The following plugin was just presented at the special session on data provenance to amend NSA's hard problems during the Hot Topics on Science of Security (HoTSoS) symposium. I'm looking for peer ...
0
votes
1answer
14 views

WordPress login doesn't work when using preview domain

We've recently moved providers for our WordPress website and can preview the website using hosts.cx or editing our hosts file to point at the new server IP address before we change the A records for ...
0
votes
0answers
26 views

how to authenticate email and phone number separately in ajax login form?

I'm writing my own login and register plugin and I'm using Ajax in this plugin...so I want to set an option for site admin if he/she wants to enable login with phone number(I've already write phone ...
0
votes
2answers
236 views

PHP warning - Use of undefined constant ‘FORCE_SSL_LOGIN’ ‘FORCE_SSL_ADMIN’ on wp-config.php

I have a bothering PHP warning for ages, and I am wondering if someone has solution to this. The following two-line warning is constantly recording in my error_log file: PHP Warning: Use of undefined ...
1
vote
1answer
30 views

wp-login gives 404 error, but wp-admin is working fine

/wp-admin it is working, but if I type /wp-login gives 404 error, any ideas why this is happening? Thank you.
0
votes
0answers
26 views

Conditional Login Redirect

I'm currently using the following code snippet to redirect admins to the admin dashboard and normal users to a specific site upon logging in. function my_login_redirect( $redirect_to, $request, $...
1
vote
1answer
26 views

Logout users upon login, based on caps/role?

To reduce spam registrations, users are assigned the pending role until they're vetted (at which point they're assigned the subscriber role). The pending role has no capabilities. When pending users ...
0
votes
0answers
20 views

Thank You Page Layout Differs on User Logged In Status

I have downloadable products on my site. In WordPress after placing a order for some reason when I am logged in the layout appears like this and when I am not the download button and billing address ...
0
votes
1answer
29 views

How do you implement a login feature on a Wordpress site?

How do you implement a login feature on a Wordpress site? I am wondering if Wordpress natively supports a login feature for the webpage itself. I am not talking about implementing a login page for the ...
0
votes
0answers
18 views

Remember page before login page, redirect to that page after social login

I used the following code. It works but not work on woocommerce social login. Therefore, is there anyone can help me for woocommerce social login. // start global session for saving the referer url ...
0
votes
1answer
38 views

i want to show a modal when user lands on home page very first time

what i want is when user lands on home page for very 1st time i want to show a specific modal. i managed to record the first login of user but what i cant get is how to track user first time landing ...
0
votes
1answer
29 views

Woocommerce Login Redirect to old domain

I move webpage to new domain. change in phpmyadmin _option _> new domain Everything is good but when I click in my account page (woocommerce) link go to old page. How to change this link to stay ...
0
votes
0answers
13 views

Error message when I'm on the login page with wordpress: cookies blocked [duplicate]

When I'm on the Login page in production, I've the cookies blocked error. Screencapture: https://www.pythonthree.com/wp-content/uploads/2020/11/cookies-are-blocked-due-to-unexpected-output-...
0
votes
1answer
31 views

Why can I log into wp-login.php and not wp-admin.php?

I have recently changed the config.php file in Wordpress in my FTP because the URL was wrong ( I did it with define('WP_SITEURL', 'http://www.myyyysite.com'); define('WP_HOME', 'http://www.myyyysite....
0
votes
0answers
22 views

Restricting wordpress login sessions for a web app

I am creating a webgl unity app that sits on a wp site and uses the wp accounts to store data. It works really well, however an issue I have is that currently a user can be logged in on two machines ...
0
votes
2answers
28 views

Lock out all WordPress Administrators except two specific users

I used the snippet below to lock out all administrators and editors except myself if ( is_user_logged_in() ){ $current_user = wp_get_current_user() ; if ( in_array( 'administrator', (array) $...
0
votes
1answer
20 views

animate.style on wp-login.php

I am relatively new to WordPress code and would like to enhance my login page with https://animate.style/ or other jQuery code. Do you think there are any security concerns in doing this? Thanks for ...
1
vote
0answers
122 views

Error thrown. Cannot create references to/from string offsets

I'm trying to access the /wp-admin on my old blog post, but when I try to get to the login page I'm getting an alert that reads as follows: "Error thrown. Cannot create references to/from string ...
0
votes
1answer
63 views

Keep user session with custom implementation of user login

To implement custom user login functionality outside of the wp-admin area, wp_signon() function is the way to go. This function accepts an array which may contain the "remember" key with a ...
1
vote
0answers
64 views

wp-login behind nginx reverse-proxy inaccessible — bad redirect?

i’ve setup WordPress on a local nginx backend instance. the backend url is https://wp.example.com:12345/ it’s served through a frontend, nginx reverse proxy, exposed at a subdir. the frontend url is ...
0
votes
0answers
31 views

How to replace ACTION url from original wordpress login form?

I need to replace the action of original wp-login login form: Instead of <form name="loginform" id="loginform" action="<?php echo esc_url( site_url( 'wp-login.php', '...
0
votes
0answers
23 views

Allowing duplicating users with same user_login and user_email

I would need a solution that the system would accept duplicates on user_login. I found a plugin for user_email duplicates, but I also need for user_login. Any idea is welcome, Thanks :)
0
votes
1answer
20 views

Input sanitation

I have a question regarding a wordpress site I have recently developed for a client. I have only until now developed a site for small clients that just require personal websites, however this client ...
0
votes
0answers
34 views

jQuery.post returns 0

I'm currently working on a WordPress login popup, which is created as a plugin. I am relatively new to jQuery and AJAX in particular. I have a small issue with the return value always being 0, though ...

1
2 3 4 5
30