I have 2 registration forms, default one on /wp-login.php?action=register
for “recruiter” users, other one on /wp-login.php?action=register&type=candidat
for “candidates” users
My problem is that on candidate form, the form tag still has /wp-login.php?action=register
as the action URL, and I want it to be /wp-login.php?action=register&type=candidat
I tried updating wp-login.php file but if I update WordPress in the future, my code will be overwritten
I’ve tried other topics recommanding to use ‘register_url’ hook but it doesn’t seem to work