Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

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

0
votes
1answer
25 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

Cannot access wp-admin but can authenticate frontend login

I have a custom function which is based off the wp_login_form(). I copied the function and essentially wrote it to add in two new fields to validate against - "mbjbookdomain" and "mbjbookreference". ...
-1
votes
0answers
31 views

Is there a way to hide the wp-admin with Nginx?

I'm trying to hide wp-admin and wp-login.php on a fresh installation of wordpress. The server is a VPS with both Nginx and Apache. Nginx serve static files and act as a proxy to Apache. In the past (...
0
votes
0answers
19 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
0answers
21 views

Login and registration integration with 3rd party API

I have a 3rd part API that regiter/log in users to its system after buying a product, I want to integrate this API with the login and registration. Scenarios: 1. WP user login -> call API for ...
-1
votes
1answer
118 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
78 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
213 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?
0
votes
0answers
22 views

redirect is ignored in wp_login_form

I have a loginform in the footer.And i have a problem that redirect parameter gets ignored in function wp_login_form. $args = array( 'redirect' => site_url( $_SERVER['REQUEST_URI'] ), '...
0
votes
0answers
10 views

How to set multiple user role in single registration page

This is a login/register page of jobroller theme. I want same login/register page with wordpress twenty-sixteen theme. I am kinda noob in this. How can i do this without using the jobroller theme?
1
vote
1answer
22 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
173 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
23 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']) ){ ...
0
votes
1answer
7 views

Custom transactional emails on user signup with wp_add_user

I've created a front-end form that handles creation of a user using wp_add_user and was wondering how I could send a welcome email to the user email that they entered into the form, upon form success. ...
1
vote
1answer
29 views

Customizing the Wordpress login form

using this doc from WordPress I was able to remove the default WordPress logo and add my own using function my_login_logo() { ?> <style type="text/css"> #login h1 a, .login h1 a {...
0
votes
0answers
11 views

How can I use the same fields for two different forms?

I'm trying to combine the login and register forms on a WooCommerce/WordPress site. The idea is that a single set of fields, username and password, could be submitted by two different forms. The first ...
0
votes
1answer
344 views

Custom password set/reset link in same URL format as default does't work

I'm trying to add custom wording to the basic WordPress registration password set/reset email. I'm using the plugin New User Approve to approve all users, but that doesn't seem to impact my issue. The ...
0
votes
2answers
479 views

How to destroy sessions after a user logout [closed]

Hi i have a ridiculous issue with my website, if a user tries to login by using his social account like google or Facebook or twitter account and then logs out after is work but my site wont destroy ...
0
votes
1answer
59 views

custom login query for custom login form?

I have a custom multi-step form which collects user data and other detailed information, in the last step it has 2 options for user, 1) asks user to enter login details and submit to save record 2) to ...
0
votes
1answer
98 views

Wordpress reCAPTCHA Problem

I have a WordPress site that has a google recaptcha on the login page, the problem is apparently it's outdated and now I can't even get in the background to update it. the google page it links you too ...
1
vote
2answers
387 views

WordPress login with Phone Number [closed]

Here is the code I'm using First i have Removed Wordpress Authentication remove_filter('authenticate', 'wp_authenticate_username_password', 20); Then i have added my own authentication add_filter(...
0
votes
0answers
48 views

Allow only numbers in username

I'm planning to take 10 numbers(imagine it as a phone number) in the username field on my website when a user signup. How can I do that? I don't want to solve this with any plugin because I am already ...
0
votes
1answer
27 views

How to login to wordpress via Cpanel

So I am 90% done with my website, I did a mistake with shortcode and removed the login option, now I cant login :(. I tried website/login but the admin login option doesn't appear. Any other way to ...
0
votes
1answer
19 views

Change default login auth

I am going to enhance my WordPress authentication page. My idea is simply, is just change the process to check password, like the default process login with username or email. I've change the ...
0
votes
0answers
25 views

login redirect setting

I am making homepage that user can register. I made 'page-login.php' with 'wp_login_form()'. It looks work fine. And in specific template, I made link to login. like bellow. (I need to redirect to ...
1
vote
1answer
199 views

Custom login doesn't work properly

I've a made a plugin which generates a login form, by using a shortcode. The login works, however, inside the dashboard I've noticed that the forms submits don't work properly. For example, the ...
0
votes
0answers
40 views

wp_login_form ignores redirect

I'm on WordPress 4.9.4 and I'm building a custom theme using Advanced Custom Fields Pro 5.6.9 and Timber 1.7.0 (the base theme is the the packed Timber Starter Theme). I'm building a page that has ...
1
vote
1answer
154 views

wp-login.php register/lost password links to buttons?

How do I style the wp-login.php register/lost password links to buttons for an easier mobile UI? Where do I find the HTML to append the ahref to a submit? And which CSS file do style that button in? ...
4
votes
4answers
96 views

adding rewrite rules in .htaccess

I was reading this answer, and tried to used its guide to hide login page. It suggest to edit .htaccess file of my website to something like this: RewriteEngine On RewriteBase / ##### ABOVE THIS ...
0
votes
0answers
20 views

I want to signin from first wordpress site to other wordpress website without registration..without using network mode

i have a wordpress website installed (without multisite wordpress network feature) on server so i want to login to other wordpress website with same credentials.. in-details: i want to create a link ...
0
votes
0answers
11 views

LinkedIn Registration

I am trying to create an option for users to register with linkedin. I've gotten that much to work through a plugin, but it automatically is allowing users to login. I'd really like to have the option ...
0
votes
0answers
446 views

isset( $_POST['submitted'])) Not working with hidden fields & wp_nonce_field()

I try to implement google recaptcha v2 using isset( $_POST['submitted'])) method on form submittion. But it's not working because of hidden fields & wp_nonce_field(). And form submitted without ...
0
votes
0answers
19 views

Processing login error on a custom page template

I am trying to create a very simple WordPress plugin to display and process the WordPress login form. The plugin should display a login form on a custom page template and display login error on that ...
0
votes
1answer
222 views

How to add required attribute to wp_login_form fields?

I create a new form in wp header using function wp_login_form(), but form fields are not set required attribute. How to add required to field?
0
votes
1answer
73 views

Redirect non-admin after login, and in url - /admin

How and where, can i make function, that will redirect user (if it's not admin) to my specific URL? (the same - when logged user type /wp-admin URL.)
1
vote
2answers
226 views

wp_login_form() passing user ID into URL on redirect?

I have a custom page where I ask users to log in to access the page. Once they log in, I would like to redirect them to the same page but I want to add on their user ID to the URL string in the ...
1
vote
3answers
150 views

Why is my javascript not invoked in my hooks except wp_head?

I am asking in the last instance because I am totally confused after not being able to invoke custom javascript functions for 2 days straight. I am new to Wordpress plugin developmnet as my background ...
0
votes
1answer
32 views

Restricting frontend acess based on user role otherwise redirect to login form

I have created a custom user role in my functions.php file. I am creating a new page template for a page on my website that I would like to restrict by role(not by capabilities). Basically I would ...
0
votes
1answer
36 views

Custom Login Process

We have currently have a login process that uses a front page to handle the login process then redirects the user back to the Front page and logs the user in. Part of the reason for this process is ...
0
votes
0answers
182 views

How to add the default registration form to a template page?

I would likt to create register page, using the default register page in Wordpress. I am adding extra fields in wp-login.php: <p>Create account</p> <p> <label for="...
0
votes
0answers
140 views

Redirection and front end admin access

Here are the plugins that I use for this setup: “SF Move Login” by Grégory Viguier, SecuPress, and Julio Potier. “Membership Pro 2” by WPMU DEV. Basically, I want my site to only be on the frontend....
0
votes
0answers
86 views

How to enable a user to choose password on register?

I am using the default WordPress registration form. I added extra fields to the form (First Name, Last name, Password). I have some issues: I am supposed to use the default WP registration, no ...
1
vote
1answer
400 views

Why can't /wp-login.php be load balanced?

I've seen several questions posted but they either blow passed this specific item or go unanswered. Basically, I have a load balance set up between two instances of the same wordpress website with ...
0
votes
0answers
31 views

Brute Force Attack Help

Today, one of my clients sites has had an unusually high number of brute force attacks, over 2000 attempts from different IP address using trying different login credentials. I had installed the ...
1
vote
2answers
549 views

Redirect when accessing /login when logged in

I am using Theme My Login plugin to change the login page from "/wp-login.php" to "/login". My question is how do I redirect a user that has already logged in so that visiting "/login" instead takes ...
0
votes
0answers
32 views

wp-login redirect_to strips spaces from parameters

I have a page... that allows you to see more information if you are logged into my wordpress site.. on this page, i have a "login" link. It links to wp-login.php, with the redirect_to parameter ...
-1
votes
1answer
243 views

Use wp_login_form function to login with a custom user table?

Is it possible to use WP built-in function wp_login_form on a custom non-wp user table?? It would be awesome if i could at the non-wp user table as an argument $args = array( 'redirect' => ...
0
votes
3answers
836 views

wordpress login without password just email address (NO 2 factor authentication with email)

I am looking to create a function filter or plugin to remove the authentication of the password for wordpress. The registration process for each user is done manually from the backend of wordpress (no ...
0
votes
1answer
211 views

Using wp_login vs login_redirect to redirect based on user-meta

I wrote a function to redirect first-time users using login_redirect, and it was working great. Then I changed the hook to wp_login (to get it to play well with a social login plugin), and now the ...
0
votes
1answer
96 views

True email confirmation for registration (keeping unvalidated users from user table)

I'm looking for a method to keep users out of the wp_users table until they have confirmed their email address. WordPress sends new users their password by email, which is a de facto email ...