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
1answer
25 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 ...
0
votes
1answer
36 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 - ...
0
votes
2answers
16 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 ...
1
vote
1answer
21 views

Set user password after creating user

I have the following code: function create_account(){ //You may need some data validation here $fname = ( isset($_POST['billing_first_name']) ? $_POST['billing_first_name'] : '' ); $lname ...
2
votes
1answer
33 views

Blocking access to wp-login via htaccess not working

Some time ago I installed the Limit Login Attempts Reloaded plugin and it's working fine. However because I was getting SO many unauthorized login attempts I also implemented an .htaccess password ...
0
votes
1answer
52 views

Redirect per shortcode if user is logged in

I want to put the wordpress login screen on my homepage. If a user is not logged in I want them to have to enter their username and password into the box (or sign up).. and if they are logged in, I ...
0
votes
0answers
84 views

Basic Auth .htaccess on wp-login, but allow logout from woocommerce

I use a .htaccess basic auth on my WC site to help prevent hackers accessing wp-login, which works well... except with WooCommerce if a logged in customer wants to logout from their account - upon ...
0
votes
1answer
39 views

Woocommerce login not working on the first try

Sometimes the woocommerce login form is not working on the first try, but it is working on the second one. There are no error messages, the POST contains all the necesarry information, and I made sure ...
0
votes
1answer
24 views

Re-style Login Form Whilst Keeping CSS Separate from Frontend CSS

I'm changing the appearance of the WP login page for a client and I'm using CSS in addition to the following code in my functions.php file. // CUSTOMIZE LOGIN SCREEN add_filter('login_headerurl', '...
0
votes
0answers
21 views

Block Admin User in custom login page

I have created a separate custom login page for users login, also implemented users cant go to wp-admin without admin role. Now I also want to block admin users login, through my custom login page, ...
0
votes
1answer
64 views

Is it possible to check if password is correct in wp_authenticate_user?

I'm really trying to implement Google's Captcha V3 on the wp-login page. I've seen this snippet referenced a few times in different places. The thing is, nobody seems to reference how to check the ...
0
votes
1answer
39 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"> ...
0
votes
0answers
40 views

wp-login.php problem

when I try to access WordPress dashboard through mydomain.com/wp-login.php, it shows me login page but when I login into WordPress account, instead of getting access to dashboard, it shows me the ...
1
vote
1answer
29 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
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
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
27 views

Meta data being pulled from wp-login.php

I'm having some trouble with meta data on my WordPres site. I have meta tags in the head of my page and they work well, but for some reason when the link is shared on LinkedIn direct chat, it looks ...
0
votes
0answers
110 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
26 views

Modify login page after clicking “login” button, and before it arrives at redirect

I've replaced the Wordpress logo with my own logo on the login page, and added a message above the login form. When a customer clicks the login button and is successfully authenticated, the custom ...
0
votes
0answers
26 views

how to add security questions on wp-registration page and validate it

I wanted to validate security questions which show's on wp-login page validation is if answers are blank user cant login and if user register with 2 questions and admin change no. question show on ...
1
vote
1answer
41 views

JavaScript Change focus to password field login page being reset

I have a special situation where I want users on the standard WordPress login page enter a password. I'm filling in the username with a line of javascript: document.getElementById('user_login').value ...
1
vote
1answer
33 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
0answers
74 views

I need to block or redirect my wordpress admin access to my site visitors

I need to block or redirect my wordpress admin access to my site visitors I have block my wordpress backend access using itheme plugin but still i can access using this URL https://my-site.com/wp-...
1
vote
0answers
51 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
1answer
156 views

How to auto login after registration? [duplicate]

I create an user using $user_id = wp_create_user($username, $password, $email); After creating the user I want them to auto login and so according to ravi patel, I have added the following code in ...
0
votes
0answers
76 views

Customize wp_login_form appearance

I embedded a login form in my websites header for not logged in users. I added it using this code in my navigation-top.php: <?php if ( is_user_logged_in() ) { ?> <?php } else { ?> ...
0
votes
0answers
59 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
136 views

Launch wordpress site to local computer from live website backed-up

A previous developer has created a wordpress site in the live server. Now after seeing the live website, it caught my attention that the website plugins, same with the theme, were buggy due to long ...
1
vote
1answer
41 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
2answers
31 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
49 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
34 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
1answer
71 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 ...
-1
votes
1answer
538 views

How to enable “remember me” checkbox in login forms by default?

I have wordpress website and i want to enable "remember me" checkbox on login forms by default because lot of user would like to login all the time until they will delete cookies. If the user does not ...
0
votes
1answer
93 views

Wordpress Login & Register works in localhost but don't work on server

how are you ? i have a Ridiculous problem. i created a ajax login and register function in wordpress . they works without any problem in localhost,but they don't work when i upload this project on ...
0
votes
1answer
79 views

Is it possible to remove the version number from the wp-login.php page?

I am trying to hide all version number on my WordPress site. Is it possible to remove the ver= version number from the stylesheet link in the wp-login.php page? href='https://example.com/wp-admin/...
0
votes
1answer
73 views

How do I validate extra pin field on my WordPress login form page?

I have been able to add an extra field to my WordPress login form using the following code inside wp_login.php file, thanks to stackxchange. add_action('login_form','my_added_login_field'); function ...
0
votes
2answers
254 views

Anyway to output the registration form like the login form with wp_login_form()?

I'm trying to create a dual login/register page with WordPress and so far I found out I can create my custom template and then output the login form with wp_login_form, however I cannot find any ...
1
vote
1answer
7k views

How can I modify the default reset (lost) password email text?

I found some similar questions on here, but was unable to apply the solutions that were provided. The standard password reset email that Wordpress is sending does not provide a clickable url for ...
0
votes
0answers
55 views

Frontend registration form doesn't save data only redirects to wp-login

I have another wordpress dilemma... I've built a frontend registration form, but for some reason whenever a user tries to register it doesn't work, and they get redirected to wp-login.php. The ...
0
votes
1answer
84 views

Wordpress cookie issue on login: “ERROR: Cookies are blocked or not supported by your browser. You must enable cookies to use WordPress.”

recently I had the problem where on login page Wordpress reported an error: ERROR: Cookies are blocked or not supported by your browser. You must enable cookies to use WordPress. This was asked ...
0
votes
1answer
582 views

How to change form action of wp-login page with a function

I'm manually creating my own Wordpress login form. The action parameter of all the forms points to wp-login.php. I want to change it for all of them to custom url (/login). Any idea how to that? For ...
0
votes
0answers
21 views

Login redirects to home page and doesn't log in

When logging into the backend it redirects to the home page. If I try going to /wp-admin after it gives me the login again. I've tried deleting the htaccess, renaming the plugin and theme folders, ...
0
votes
1answer
7k views

Replace standard Login and Register form for Woocommerce [closed]

When non-logged users click on "my-account" they see standard woocommerce login and register forms. I have a [short_code] of new login form. Is there any way to replace or redirect standard login and ...
0
votes
1answer
614 views

Possibility to login without password

I'm creating a webapplication for users that are racing in a rally. I have the following data from the different racers: Username Password Mobile phone Email The problem is they never know their ...
1
vote
3answers
2k views

How to change login labels

I want to know how to change the login label such as Username or Email Address to Username within the wp-login.php?
1
vote
1answer
187 views

CSS style button For WP Login Function in page template

I am using Avada theme. I have a page template created where I placed the WP Login function: <?php wp_login_form(); ?> Here is a live page: https://webariaserverfour.com/content-restricted/?...
2
votes
2answers
1k views

Remove “Remember Me” from login form

I have a form that is on the front end of my site. I'm trying to remove the "Remember me" checkbox but can't get this to work. Here is my form code. <?php $args = array( 'echo' ...
0
votes
0answers
35 views

wp_signon not loggin in user to WordPress [duplicate]

I'm using the below script to log the user in, but when I run an if statement for is_user_logged_in(), but it doesn't seem to return the user as logged in. <?php if( isset($_POST['username']) ){ ...

1 2 3 4 5 6