Questions tagged [wp-login-form]

Provides a simple login form for use anywhere inside your theme or plugin (in public/guest facing requests).

Filter by
Sorted by
Tagged with
0 votes
1 answer
21 views

Can we intercept user_login and user_pass from a wp_login_form?

with my plugin, I have a login form. I use the wp_login_form() function of Wordpress. As you know, this function links to the wp-login page. But if the user_login is not present or if the email is ...
user avatar
0 votes
1 answer
48 views

Disable Remember Me in Login Form

I need to disable the 'Remember Me' prompt in login screens. Based on answers here https://wordpress.stackexchange.com/a/306746/29416 (including my own answer from 2018 with code that I had working ...
user avatar
0 votes
0 answers
12 views

How would you set Theme Customizer API Previewer Preview URL of a Logged out Page or Login Screen

How would you set the WP_Customizer preview iframe to a Logged out page like the Login Screen /wp-login.php? I'm aware of how to set the preview page on expansion of panels or sections, but I have ...
user avatar
0 votes
0 answers
20 views

Open login logo URL in new tab

Using add_filter('login_headerurl', fn() => FRONTEND); i was able to change the login logo URL. But i couldn't find a way to make it open in a new tab. Or in other words, how can i add target=&...
user avatar
  • 103
0 votes
1 answer
16 views

Login page wordpress tagline remove [duplicate]

I changed the Title and Tagline of my Wordpress site. But the tagline on the login page shows "Wordpress". How do I change that. Anyone can help to solve this? Regards, Abhi
user avatar
0 votes
0 answers
24 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
1 answer
97 views

Adding line break in esc_html__

I would like to add line break in the output of esc_html__ WordPress function. The original code is: echo "<span class='gp-success'>" . esc_html__( 'We have just sent you an email with ...
user avatar
0 votes
1 answer
59 views

how to prevent wordpress admin from logging in via woocommerce my-account page

website administrator can login using woocommerce my-account page. is there any way to prevent this and change the login page for admin? I mean the admin username, email and password will be ...
user avatar
  • 11
0 votes
0 answers
184 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
19 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
1 vote
1 answer
171 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
0 votes
1 answer
25 views

Custom Login page, redirection and restrictions

I'm having some issues with my custom login page with redirections and restrictions. Any user can browse a 'community' page but they can't access the 'distributors' pages. I have set a rule so if ...
user avatar
  • 1
0 votes
0 answers
30 views

When i try to open Localhost/wordpress/wp-admin . An Error appears " Registration Has been Disabled" . No login page is shown in the browser

Localhost/wordpress is not working . There is a message written in the page " Registration has been disabled" . Can anyone please solve this ?
user avatar
0 votes
1 answer
25 views

No plugin populate user information in to form

I want to create my own form in order to get information on my site. For learning purposes, I do not want to use a plugin. So, please don't tell me to use one. I know they are easy to use, but I want ...
user avatar
  • 1
0 votes
1 answer
115 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/')).'" ...
user avatar
0 votes
0 answers
74 views

After limiting the access to my wp-login.php by IP through .htaccess, all my password-protected posts stopped working. What's the best solution now?

To avoid brute force and illegal access to my WordPress website, I've limited the access to the wp-login.php script by IP addresses, using the .htaccess file. In other words, only certain IPs can ...
user avatar
1 vote
2 answers
328 views

Change Wordpress default registration error text [Error: This username is invalid because it uses illegal characters. Please enter a valid username.]

May I know how could I change the error text? Example, I want change it from. [Error: This username is invalid because it uses illegal characters. Please enter a valid username.] to [Error: Username ...
user avatar
  • 15
0 votes
0 answers
38 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 ...
user avatar
0 votes
1 answer
131 views

How to hook a logout funtion for specific usr role in wordpress?

I am using plugin for login/logout(https://wordpress.org/plugins/login-logout-menu/) navigation link to be dynamic. Once user role logged in they will redirect to specific page and functionality is ...
user avatar
  • 11
0 votes
1 answer
36 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 ...
user avatar
  • 11
0 votes
1 answer
182 views

Hide front-end from every logged out user and redirect them to the default login page

I want to hide the front-end from every visitor/logged out user. To see the front-end, every user must have been registered and logged in. Any visitor that's logged out should be redirected to the ...
user avatar
0 votes
1 answer
37 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....
user avatar
0 votes
1 answer
22 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 ...
user avatar
0 votes
0 answers
49 views

How to allow access based on the user meta flag

I want to check user meta data and allow access. where I am inserting user_status in wp_usermeta table at the time of Registration. How to validate/verify meta value with password for login. Here is ...
user avatar
0 votes
1 answer
35 views

Copying My account/Login/Register button outside header

My client is looking for a way to have a Sign up/Login button outside the header menu area. For instance this website - https://poshmark.com/ . The "sign up with email" forwards to a login ...
user avatar
  • 3
0 votes
1 answer
457 views

How do I create a function that modifies a message in the wp-login.php file?

When a user uses the password reset functionality in WordPress, they are asked to enter their email and click confirm. After doing so, they get the message: Check your email for the confirmation link,...
user avatar
  • 3
2 votes
1 answer
472 views

how to use reCaptcha v3 in wordpress custom login form?

I tried to create a custom login form and custom register form by ajax. I have been successful to make that and you can see my code below for custom login form. the issue is, I need to use reCaptcha ...
user avatar
1 vote
1 answer
456 views

Use Password Protected Form without the use of wp-login.php

I need to password protect a page, but from what I looked up -- the action of the form needs to use something like this: action="' . esc_url( site_url( 'wp-login.php?action=postpass', 'login_post'...
user avatar
0 votes
1 answer
39 views

When I enter password, I'm redirected to the WordPress login form

I have a page at http://localhost/wix/dss/ when I enter, I get redirected to http://localhost/wix/wp-login.php with the error message Error: The password you entered for the username ak is incorrect....
user avatar
  • 113
1 vote
1 answer
235 views

Auto redirect after session expire, but only for one user

Does anyone have an insight as to how I could auto redirect only one user instead of for everyone when a session times out? IE user - paul when his session times out, takes him to XYZ.com/page instead ...
user avatar
0 votes
0 answers
118 views

Issue with cookies in wp-login

After I’ve switched the /wp-login.php standard login URL to a different alternative (lets say /wploginaccess) every time I input the login credentials it fails only once with the following message: ...
user avatar
1 vote
0 answers
30 views

Wordpress Register Form

How can I make the username field have a default value on the register form? I've seen that the core code is from the wp-login.php file but I do not want to edit that for obvious reasons. I would like ...
user avatar
  • 11
0 votes
0 answers
14 views

Default new users to no admin bar [duplicate]

I want to be able to default all new users created with the wp_login (register) box to have the user option: Show Toolbar when viewing site set to unchecked. I have the facility to then jump into wp-...
user avatar
  • 7
0 votes
1 answer
816 views

How to add custom authentication to wordpress login and register

I want to create a function that will halt the login process in wordpress and let a user to validate an otp form or code before he logins in fully. And i intend this interception to be just after the ...
user avatar
  • 3
4 votes
2 answers
187 views

How to keep always logged in development environment

I have a little non-standard WP dev environment, I use one WP core for all my projects and switch each project in core's wp-config.php just changing the $project variable (e.g. proj1, proj2, example......
user avatar
0 votes
1 answer
522 views

Hiding the Wordpress login and password fields from login page

I am using social plugin and I want to use just that and hide the login and password fields from login page, how do I do that? I have tried this code but it disables complete login area including &...
user avatar
0 votes
1 answer
106 views

Problem in auto login after registration

I created a registration form myself and now I need to auto login after registration but I see the following error that belongs to a plugin. I know I should not speak about plugin here But my question ...
user avatar
0 votes
0 answers
19 views

How to change default username field after login

if i go back to login page after logging in the username is shown in the username/email field(like the image bellow) how can i set it to empty or the user email?
user avatar
0 votes
1 answer
70 views

Determine user destination on wp-login.php

I am adding functionality to require users to login to view a website by hooking into the template_redirect action and sending non-authenticated users to wp-login. This is all working fine. I would ...
user avatar
  • 396
0 votes
0 answers
22 views

Login form does not store/remember/suggest users password

I'm struggling (very much struggling) to find a fix for my issue. I'm using WP 5.4.1 with PointFinder theme. The problem is that even if the 'remember me' checkbox is turned on, users have to fill the ...
user avatar
  • 1
1 vote
0 answers
39 views

Removing wp_login_viewport_meta

I'm trying to change the meta viewport tag of wp_login.php page via functions.php. I added, successfully, the new ones via a new function and an action to login_head. I want now to remove the ...
user avatar
1 vote
0 answers
41 views

wp-admin - 404 after custom login form

I create custom login form in my page with this code: add_filter('login_redirect', 'my_login_redirect', 10, 3); function my_login_redirect($redirect_to, $requested_redirect_to, $user) { if (...
user avatar
  • 21
0 votes
0 answers
33 views

Unable to login after registration

I use wp_insert_user to register new users from the frontend. But when I use wp_signon to log them in later, it fails. It says the username or password is wrong. But they are not (password: pass). ...
user avatar
  • 3
0 votes
0 answers
26 views

Custom user roles are unable to login

I have created custom user roles 'teacher' and 'student' using members plugin. But they are unable to log in using wp_signon but the admin and other roles are able to log in. I tried using my custom ...
user avatar
  • 3
0 votes
1 answer
141 views

Using is_user_logged_in() to lock down whole site

I'm wondering if using is_user_logged_in() to wrap all my theme templates (page.php, index.php, etc) is good way to require login. I'm wanting to use SAML to allow users to login. I tried using Justin ...
user avatar
  • 197
1 vote
2 answers
702 views

Redirect already logged in users away from a page to a specific page base on user role

I'm trying to accomplish this simple task through different plugins, but I can't find the right one for different reasons. I have a Login Page with a login form. When user logs in, he's redirected to ...
user avatar
0 votes
2 answers
841 views

wp_set_password() does not work!

I created a simple form for my users to can change their passwords. but there is a problem and I am confused! I tried a lot to change my password but my pass will not be changed by wp_set_password() ...
user avatar
0 votes
1 answer
41 views

Prevent display password on wp-login.php

In wp-login.php i want send password salted SHA256 on password. So i can avoid the security data exposed. see the screenshot where pwd is not encrypted so how can make made encryption so should not ...
user avatar
0 votes
1 answer
246 views

Infinite loop when logging out using custom login form

I have a child theme that I'm using based on a parent theme I created. The parent theme uses the standard wp_login_form while this child theme uses a username only option (the site itself is local - ...
user avatar
  • 279
0 votes
2 answers
133 views

Add content in wp login page

I have customized my wp login page according with my custom theme. I would like to add a content box inside my wp login page who invite the user to go through my custom registration page if he haven't ...
user avatar
  • 1

1
2 3 4 5
7