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

What is the function that sets login cookies on WordPress?

I tried to look for everything on Google but I had little luck. I created a login and registration form on the same page before making a purchase if you are not logged in. To log in, use the ...
0
votes
1answer
132 views

Change wp-login to custom URL login page

I am currently using the plugin https://wordpress.org/plugins/login-logout/ to create a login/ logout button for my website. I would like to change the login URL so instead of users being directed ...
0
votes
0answers
21 views

Reset cookie for login, register and logout

I would like to better understand how WordPress login / logout cookies work. In my case I have a page that allows you to perform various operations. To see if the user is not logged in I perform the ...
0
votes
0answers
14 views

Understanding if the user logged in using the Login form of through cookie authentication

Well, it's all in the title. I hooked in wp_login, but as far as I have been able to understand from documentation this hook is alwasy fired when the user has logged in regardless of how -if a normal ...
0
votes
0answers
6 views

login password required after redirection to a new domain

I am in need of your assistance. I have deployed a password protected wp site to a new domain. After changing the sites URL and home page to a new domain (and cleared cache and checked in other ...
0
votes
1answer
25 views

Log in only by email and no username

Can you tell me a function to insert in the functions.php file to remove the login via username option? I would like the user to be able to log in only with his registered email.
0
votes
0answers
21 views

wp-cron event doesn't run when custom login API is enabled

I have a cron job on my wordpress site. which I would like to run every hour. I also have a custom login function on my site: users are directed to my site via another site which passes login ...
0
votes
1answer
15 views

how to use auth_redirect() redirect visitor to login page if they are not login when they click account and order page?

I created a drop down menu under My Account, like order, account info, address...etc, how can I just redirect all visitor to login page if they are not login?
0
votes
2answers
44 views

Auto login after reset password

I found this code around and I'm testing it but it doesn't work. How can I solve it? add_action( 'validate_password_reset', 'rsm_redirect_after_rest', 10, 2 ); function rsm_redirect_after_rest($...
0
votes
1answer
19 views

Recognize custom login page as wp-login.php

I created a custom login page and would like it to take the place of the wp-login.php page completely. For example, so that the login_head function addresses only the new customized login page. Is ...
0
votes
1answer
38 views

Check for $ _POST fields in a POST method form

I'm trying to check if the username and password fields are present in the login form. The problem is that the if (!empty ($_POST)) code does not do this to me. UPDATE: if (isset($_POST['submit-btn'...
0
votes
0answers
13 views

Create a login form where the login users are redirected

Is it possible to do such a thing? <?php if ( !is_user_logged_in() ) { ?> <!-- Users not logged in --> <form id="wp_login_form" action="" method="post"> ...
1
vote
0answers
61 views

disable site_url redirect in wp-login.php

I'm running a wordpress install on nginx, and I'm looking at novel ways of securing wp-admin. I know theres more than one way to do this (e.g. adding an http basic auth layer, login lockdown, 2FA, etc....
1
vote
1answer
34 views

Forgot password needs to redirect from wp-login to a custom page

I'm new to WordPress. My question is, Now default user forgot password redirecting to website/wp-login.php?action=lostpassword&redirect_to=http%3A%2F%2website.com%2Fuser-profile But I have a ...
0
votes
1answer
77 views

Is it necessary to sanitize wp_set_password user input?

I'm trying to add a password form to the WP registration form. See the code below. I was wondering if I need to sanitize this specific user input? (and if so how?) If I understand it correctly, WP ...
0
votes
0answers
59 views

Issues adding Recaptcha v3 to Wordpress Registration

I'm having a problem with adding Recaptcha v3 to my WP registration form. The recaptcha seems to be registered and working and communicating with Google's api. I'm running into problems when I try to ...
0
votes
0answers
20 views

Does it make sense to check a nonce on user log in?

I read the following blog post about implementing custom user log in: http://natko.com/wordpress-ajax-login-without-a-plugin-the-right-way/ In the post, the author walks through some PHP code for ...
0
votes
0answers
9 views

WP Multisite after login in network when try to open subdoamin it again ask login

I have a multisite with latest WP version 5.2 The problem is, When I was login in network and than try to open sub domain site, it can again ask for login. I have try define( 'COOKIE_DOMAIN', '' ); ...
1
vote
1answer
27 views

Passing username to login screen

I would like to user a single field form to pass a username to the wp-login (without password) something like mysite.com/wordpress/wp-login?username=dave - although the form could, of course be POST ...
0
votes
0answers
11 views

How to customize the 'Forgot password'-page?

I'm trying to customize the 'Forgot password'-page. I identified the following code in functions.php which I believe is creating this current (somewhat) customized 'Forgot password'-page: function ...
0
votes
0answers
22 views

custom front end login form redirect error

I'm using a custom Login Form on my wesbite. when user enters a wrong unsername or password, he gets redirected to the default wp-login.php page. I would like the user to stay on the same page, and ...
0
votes
0answers
18 views

Redirecting users to SSO for private pages without restricting standard login

I have the miniorange SSO plugin installed (https://wordpress.org/plugins/miniorange-saml-20-single-sign-on/) and I want to check users on private pages only through that SSO, logging them all in as a ...
0
votes
1answer
29 views

Styling WordPress login page - Can I change the markup on the login page?

I'm trying to make the login-page prettier, but there are several things that makes it difficult (read: impossible). I know that there are a bazillion plugins that can do some of the things, - but ...
0
votes
0answers
26 views

Utilizing Wordpress Scripts Against Remote Servers

I have a script like this, for example (excerpt): <form name="loginform" id="loginform" action="<?php echo esc_url(home_url('/')); ?>wp-login.php" method="post" class="sign_form"> <...
0
votes
1answer
74 views

add_action('init') not work

my code is add_action('init', 'user_logged_in'); function user_logged_in(){ if( is_user_logged_in() && is_page('login')){ wp_redirect(home_url()); exit; } } the page slug ...
0
votes
1answer
33 views

Display specific page if user signed in

I have a business directory website. I'd like to know how to create a page display condition. Basically, when clicking on the "add a listing" button, how do I make non-logged-in users be directly ...
0
votes
1answer
50 views

How to log into WordPress admin in MAMP

New to MAMP, but had no issues with installation and viewing the WordPress site I pulled down from my server. However, can’t figure out to log into the admin side of my site. Here’s what I’ve tried, ...
1
vote
1answer
120 views

Login redirect_to loop with reauth=1, cookie expiry set to 1 year in past

(I've resolved this - sequencing error in wp-config.php - thanks to this answer elsewhere). I've moved a site dev to production and everything is working correctly except the login form, which is ...
0
votes
0answers
63 views

WP login admin name incorrect send to another page or site

Firstly a little overview - my site uses Wordfence (this is not the issue - just the reason for this to begin with) -- Even if Wordfence is disabled this should still work. *its just what brought ...
0
votes
0answers
35 views

Add custom security question to custom login form

I wonder if someone who knows this with security can help me out? I got a custom made login form (template and functions.php) to which I need to add a security question that I can modify directly ...
0
votes
0answers
102 views

Set redirect_to in login based on a window.location.hash from url with a # in it

I have a site that I must redirect a logged in user to a page with a # in the url. Anytime this happens the only way to grab anything after the # is using JavaScript. I know I can grab what I want ...
0
votes
0answers
31 views

Link Users to external login db

I have to create a login form and link the login button to an external database. I already have the external database with users data. So basically, it will have to check if the user exists and ...
0
votes
1answer
54 views

Problems with is_user_logged_in() | Function in WP

I use this code to display the user profile in WordPress: <?php if ( is_user_logged_in() ) { $current_user = wp_get_current_user(); if ( ($current_user instanceof WP_User) ) { ...
0
votes
1answer
52 views

Call header and footer on wordpress default login page

i am developing a word press site. I want to make login page as suitable to homepage. I am using a plugin for customizing the login page
0
votes
0answers
30 views

Edit User “Logged in” message

How to remove the text "You are Logged in as" from - [You are Logged in as username (logout)]. So that the end result is like this - [username (logout)]
1
vote
3answers
151 views

How can I allow password reset based on logins containing the @ character?

I'm working on a setup where user logins have to follow this format : login : user-john@doe.com Even though Wordpress has no problem creating such accounts, it seems they don't play well with ...
0
votes
1answer
16 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
1answer
25 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
95 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) ...
1
vote
1answer
32 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
33 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
16 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
88 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
39 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
25 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
139 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
0answers
33 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
48 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
78 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
25 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 ...