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?
<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
Note, I need for both