Questions tagged [wp-login-form]
Provides a simple login form for use anywhere inside your theme or plugin (in public/guest facing requests).
326
questions
1
vote
1
answer
13
views
login_enqueue_scripts changes are not reflecting
I tried adding a custom CSS for my wp-login page and login forms within my website using the login_enqueue_scripts hook.
My issue is that my changes don't initially reflect on the front end. But the ...
0
votes
1
answer
16
views
Redirect after registration and auto login is not working
the user can register on the frontend form, and will be auto logged in after submission. Then he should be redirected to a custom URL, but the redirect is not working.
// Shortcode für das ...
0
votes
0
answers
27
views
Replace the "wp-admin" in the URL with "xyz-admin" in WordPress dashboard
I want to replace the "wp-admin" in my URL with "xyz-admin" all across my dashboard after a user logs in. I know that there are some plugins that could help, but those plugins only ...
0
votes
1
answer
38
views
wp_login_form display no styled form
I've created a custom template for a custom theme, I need to show the vue app that will manage the front end only to logged users. I've used this code inside my functions.php file
and it's supposed ...
0
votes
0
answers
56
views
WordPress Backend - Custom Login Flow
What do I want to achieve :
Login based on the mobile number and OTP each time the user logs in, an OTP will be sent to his number.
The OTP service is linked to an external server, meaning that, I do ...
0
votes
0
answers
26
views
Wordpress site shows a white page for site/wp_admin. A login returns again to the login screen
The situation for a site that worked for years.
The Site frontend works
The theme I use is TwentySixteen
I tried to open site/wp_admin
Login Screen shows up
I enter the credentials
Login Screen Shows ...
0
votes
0
answers
47
views
How to Disable Pre-population of Password on Password Reset
because of the way my site template works, I need to stop WordPress from pre-populating a new password when a user is brought back to the site, after clicking on the password reset link in the email ...
0
votes
0
answers
42
views
Remove login link from Reset Password-screen
I haven't been able to find anything useful regarding removing or hiding the "Login" link from the Reset Password screen and the screen after succesfully choosing a new password.
I'm using a ...
0
votes
0
answers
85
views
Why am I not able to login to the admin
After the login credentials are submitted, the login page is retained. There is no invalid username or password message. The URL changed from wp-admin to wp-login.php with the querystrings. The ...
0
votes
1
answer
34
views
How to authenticate/verify login credentials & check for user meta without logging in?
I have custom login form and i used wp_signon() to authenticate. However, i wanted to run an additional check for usermeta and if the user has account_status === pending, throw an error or or prevent ...
1
vote
0
answers
75
views
How do you create a front end form that enables the editing of member-specific custom fields in WordPress?
I would greatly appreciate any help you can provide regarding the creation of a front end form to allow members to edit custom posts that I have created in their admin panel.
I have successfully ...
-3
votes
1
answer
82
views
Custom login form logo not displaying
I'm tryng to customize the logo and the login form of a child theme I have in a wordpress site.
I've tried to use the add_action('login_enqueue_scripts', 'my_custom_logo') action and inside the ...
0
votes
1
answer
477
views
Custom error messages for login and lost password forms
When a user enters wrong username/email or password in the login form, I want them to see "Invalid username/email or password." error message. That's easy to do with the following code:
...
0
votes
0
answers
26
views
Wordpress - Security Question at Login from User's Meta Data
How can I add KBA (Knowledge-based authentication) Field at the time of login in WordPress? That field can be anything submitted by the user at the time of registration. For example … At the time of ...
0
votes
1
answer
52
views
Redirect users by role to custom pages
I have created a custom login form that will use the default action of the wordpress one.
I need to display errors on it if occurs but at the moment the user will be redirected to wp-login.php in case ...
0
votes
1
answer
165
views
Registration fields prefilled with URL parameters
I’d like to invite some users via email to register and would like to prefill the user registration fields, such as
A.) username and B.) email.
Unfortunately it is not working and my JS skills suck... ...
0
votes
1
answer
225
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 ...
0
votes
1
answer
733
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 ...
0
votes
0
answers
90
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=&...
0
votes
1
answer
23
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
0
votes
1
answer
389
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 ...
0
votes
1
answer
544
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 ...
0
votes
0
answers
704
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/...
1
vote
2
answers
1k
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 ...
0
votes
1
answer
173
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 ...
0
votes
1
answer
47
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 ...
0
votes
1
answer
663
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
0
answers
148
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 ...
1
vote
2
answers
755
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 ...
0
votes
0
answers
102
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
1
answer
571
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 ...
0
votes
1
answer
59
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
1
answer
647
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 ...
0
votes
1
answer
108
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
1
answer
23
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 ...
0
votes
0
answers
149
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 ...
0
votes
1
answer
47
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 ...
1
vote
1
answer
885
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,...
2
votes
1
answer
946
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 ...
1
vote
1
answer
1k
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'...
0
votes
1
answer
53
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....
1
vote
1
answer
437
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 ...
0
votes
0
answers
210
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:
...
1
vote
0
answers
36
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 ...
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-...
0
votes
1
answer
1k
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 ...
4
votes
2
answers
263
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......
-1
votes
1
answer
1k
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 &...
0
votes
1
answer
175
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 ...
0
votes
0
answers
35
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?