Last call to make your voice heard! Our 2022 Developer Survey closes in less than a week. Take survey.

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
1 vote
0 answers
5 views

display dynamic WP Site logo on wp-admin using CSS

I'm looking for a way to always display the current site logo (as set in customiser) on the wp-admin page in place of the WP logo via CSS. I know how to manually add a custom image (code below is part ...
user avatar
1 vote
2 answers
88 views

How to shutdown wordpress login temporarily

How can I disable wordpress login temporarily even for administrator users? is there any solution?
user avatar
  • 11
0 votes
0 answers
10 views

Memberpress login redirect via shortcode is overriden by Memberpress settings [closed]

So just trying to do something super simple. Have a Memberpress site, have the login page set to a custom page, and have the login form inserted using the shortcode as per the docs here with the ...
user avatar
  • 1
0 votes
0 answers
12 views

Trying to re-direct users to specific page based on an ACF variable

I have a case where I have an ACF variable that is stored within a users profile and based on that variables state I need to redirect to one of two pages once the user logs in. This is just a true or ...
user avatar
  • 1
0 votes
0 answers
18 views

Linking form to user meta fields

I currently have my login page set up to allow sign up through google. Immediately after a successful sign up I'm looking to set up a redirect to a form where the user can enter additional details and ...
user avatar
0 votes
0 answers
14 views

Restrict users of site 1 to login in site 2 in wordpress multisite

I'd setup Wordpress Multisite. site-1: www.abc.com (is main site). site-2: www.abc.com/site2 (is a subsite). I'd setup other site in sub directory not on as a subdomain. Right now if a user register ...
user avatar
0 votes
1 answer
21 views

add class to element if user is not logged in [closed]

Please help . I need to add class to this button if user is not logged in <?php echo apply_filters( 'my_order_html', '<button type="submit" class="ADD-CLASS-HERE cfw-primary-btn ...
user avatar
0 votes
0 answers
8 views

How to create separate login for authors/moderators/subscribers?

I am working on a simple blog on marketing niche. However, few others have shown interest and is willing to join as authors. We know that in wordpress the importance to keep the login url unguessable. ...
user avatar
0 votes
0 answers
23 views

Reset Password Limit not working

I have used Ultimate Member plugin to limit Reset Password for given user email. But it's not blocking after the given attempts. Please help me out. This is my configuration page Even after giving ...
user avatar
1 vote
0 answers
27 views

wp_insert_user() function password never match

I am trying to use wp_insert_user() to add a user from the custom registration form. The user gets added to the database with a hashed password, but when the user is logged out and tries to use ...
user avatar
0 votes
0 answers
12 views

URL with login details included for public members

I've come across this How can I automatically login using a URL? for providing login details within the URL for admin access. How would I modify to use variable URLs for different posts? eg. https://...
user avatar
1 vote
0 answers
28 views

How to redirect on login to a specific page if a specific meta user is empty

I would like to indicate that if you do not have the first_name filled in when logging in, you will be redirected to a specific page, for example /onboarding and if the first_name field is filled, you ...
user avatar
0 votes
1 answer
29 views

How to change the login-URL with function.php?

I would to change the login URL of my site from http://example.com/wp-admin to http://example.com/example. I don't wanna use a plugin for do that, so can I do that from function.php ?
user avatar
  • 1
0 votes
0 answers
31 views

This code is supposed to only allow user to be authenticated if accountVerified is equal to 1, but it still allows user to be authenticated otherwise

global $user_id; global $wpdb; if(is_user_logged_in()){ header("Location:https://www.recovermenow.co.uk"); } if(!$user_id){ if($_POST){ $...
user avatar
0 votes
0 answers
22 views

User not able to sign in after wp_authenticate() and wp_signon() wordpress

<?php global $user_id; global $wpdb; if(!$user_id){ if($_POST){ $username = $wpdb->escape($_POST['email']); $password = $wpdb->escape($_POST['password']); ...
user avatar
0 votes
0 answers
24 views

WordPress Multisite Profile Picture Sync Error with Nextend Social Login Plugin

I am using Nextend Social Login plugin for the login and registration system of my WordPress Multisite. This plugin fetches profile pictures from Facebook accounts. Suppose there are two websites: ...
user avatar
0 votes
0 answers
10 views

How to change the login page without a plugin and not only customizing logo and text around the form?

I want to customize my login form, But I don't want to use a plugin (at least if they are paying like some of them). I want to keep my header in the login form, so just customizing the form is no ...
user avatar
0 votes
1 answer
37 views

Login error when username as email different to primary email

"Unknown email address. Check again or try your username." I understand a user can log in with either username or email. But when username is an email (and particularly different to the ...
user avatar
  • 1
1 vote
0 answers
25 views

Does wp_login only trigger before an user signs in into the admin panel?

Saw this bit of code in a plugin: public function wp_login($user_login, $user) { Identify::create($user->ID); } Fires after the user has successfully logged in. In the doc it says that it ...
user avatar
  • 13
0 votes
0 answers
17 views

ERROR: Cookies are blocked due to unexpected output (no FTP access)

I am trying to log in the WordPress of a deceased friend to remove his page, but I get the error message described in the title when trying to do so. I saw many messages advising to modify some files ...
user avatar
  • 101
0 votes
0 answers
26 views

Disable redirect to homepage after successful Login, Stay on Current Page

I have built a WordPress login form using Bootstrap Modal. When logging in it redirects you to the homepage after a successful login. I want to DISABLE this redirect. I just want the page you are ...
user avatar
  • 11
0 votes
0 answers
59 views

Login error " There has been a critical error on this website"

There has been a critical error on this website and I couldn't find the solution to this.
user avatar
0 votes
1 answer
38 views

Prevent wp_signon redirect on failed login for ajax login

I have a custom sign up process with an ajax login if the user needs to log in (stays on the same page). I have this code in functions.php and call it with Ajax. If credentials are correct, everything ...
user avatar
  • 169
0 votes
0 answers
15 views

Removing "Failed" query argument upon successful login

I'm using the following code for a custom login page, to keep people away from wp-login.php, and it almost works perfectly for what I need: /** * Custom Login Page Actions */ // Change the login url ...
user avatar
0 votes
1 answer
38 views

How to redirect Subscribers on login to specific page, when logging in from a Page

I would like to redirect my Subscribers to our Member Resources page when they login, but only when they are logging in from a Page ( is_page() ). When they log in from one of our custom post types I ...
user avatar
  • 11
0 votes
0 answers
32 views

Validate user login in php

Hey guys so I made a custom API for my wordpress site and i need to check if the username and passord is correct. I did it with the following code but its not working since it always returns "...
user avatar
0 votes
0 answers
22 views

I can't access my wp-admin dashboard

I have reset my password more than once now to ensure I have the right username and password. I try login to my wp-admin for my site. It requests username and password. It then goes to this page: I ...
user avatar
1 vote
0 answers
257 views

How to Change The WordPress Login URL Without Plugin

I'm looking for a way to change the wordpress admin login url from site.com/wp-login.php or sit.com/wp-admin.php to my custom login url like site.com/mylogin. I want to this without using plugin or ...
user avatar
  • 21
0 votes
0 answers
29 views

login with users info in a different database

My question is can I create a custom database to store the users info to login and make wordpress login without that info never be in wordpress database?
user avatar
0 votes
1 answer
26 views

Sharing a logged in session with a custom subdmain site?

I'm trying to share a Wordpress login between a typical Wordpress installation and a secondary (custom/PHP) site that will be on a subdomain of the Wordpress site. A user should be able to register on ...
user avatar
  • 1
0 votes
0 answers
195 views

Removing "There is no account with that username or email address." error message in "/wp-login.php?action=lostpassword"

Would like to find out if there is any way I could customize the wp_login page to remove the "There is no account with that username or email address." validation (show below) and any email/...
user avatar
  • 13
0 votes
0 answers
41 views

Unable to execute Ajax request, status code 400

I'm running WordPress Network on Nginx Web Server and I'm facing some issues when any user tries to login. If the user tries to login without any of website earlier login data (cache and cookies), ...
user avatar
  • 101
0 votes
0 answers
21 views

woocommerce store login not working at first time

First of all this is might seem sort of duplicate, but i tried every forum and every answer.. in my specific case this happens only when login in from account or order page wish will refresh the page ....
user avatar
  • 101
0 votes
0 answers
21 views

Unable to login my wordpress website

wp-login.php?redirect_to=https%3A%2F%2Fkairagroups.com%2Fwp-admin%2F&reauth=1 I see this URL error and also deactivated all plugins, deactivating themes and deleted .htaccess file also but still ...
user avatar
0 votes
1 answer
60 views

Plugin or ways to limit number of users logging in the website,

Would like to check if there is any way (or plugin) available that can: a.limit the number of concurrent users session by of user currently logged in to the website b.limit the number of users logging ...
user avatar
  • 13
0 votes
0 answers
28 views

force logged in user to stay in the dashboard

I want to force logged-in users to stay in the wp dashboard. If a user logs in and visits a frontend page while being logged in, he should instantly get redirected back to the dashboard. Is there any ...
user avatar
0 votes
1 answer
29 views

Bad pages redirection

I have a wordpress web site with only a private pages (can only be viewed by logged users) I use the below code in my theme functions.php to be redirected to login page each time a put the page URL on ...
user avatar
  • 264
0 votes
1 answer
30 views

Can't log in to WordPress wp-admin after adding code to functions.php

I am adding the following code to the end of my functions.php file to populate a taxonomy based on a Custom post's post-title. The problem is that when I add the code I get the following error trying ...
user avatar
  • 1
1 vote
0 answers
31 views

How can I add a login/logout link in the sub-nav of my website?

Using the code below I was able to get a login/logout button working on my navigation. This code makes it so that it displays on my main navigation and I just wanted it to appear as a sub-nav item ...
user avatar
  • 11
0 votes
0 answers
24 views

Login Based on ip

I have to create an internal site for company. So I have to restrict all people out of the company to have a login. And all people from the company need to access the site without a login
user avatar
0 votes
0 answers
14 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 ...
user avatar
1 vote
1 answer
183 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 ...
user avatar
  • 11
1 vote
0 answers
83 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 ...
user avatar
0 votes
1 answer
39 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 ...
user avatar
0 votes
2 answers
44 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-...
user avatar
1 vote
0 answers
25 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 ...
user avatar
0 votes
1 answer
72 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 ...
user avatar
  • 89
0 votes
0 answers
35 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 . ...
user avatar
0 votes
0 answers
37 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 ...
user avatar
  • 1
0 votes
0 answers
20 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 ...
user avatar
  • 191

1
2 3 4 5
31