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 example:
form name="lostpasswordform" id="lostpasswordform"
action="http://mywebsite.com/wp-login.php?action=lostpassword" method="post"
So I want to change the form action into mywebsite.com/login/?action=lostpassword
Note, I need for both Login
, Register
and Lost Password
.
Kind regards.
Topic wp-login-form functions url-rewriting actions forms Wordpress
Category Web