Changes between Initial Version and Version 2 of Ticket #38336
- Timestamp:
- 07/20/2021 04:26:30 PM (2 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #38336 – Description
initial v2 1 Currently there are action hooks that fire in the login forms after the fields have been loaded into the form. This allows new fields, new text, additional ver fication fields such as CAPTCHA, etc to be added after the username/email/password fields.1 Currently there are action hooks that fire in the login forms after the fields have been loaded into the form. This allows new fields, new text, additional verification fields such as CAPTCHA, etc to be added after the username/email/password fields. 2 2 3 3 However, currently there is not an easy way to add new fields to the top of the forms before the username/email/password fields without building a custom form. … … 7 7 In wp-login.php the login forms have the following action hooks: 8 8 9 in form name=" registerform"10 do_action( 'login_form' ); 9 in form name="loginform" 10 `do_action( 'login_form' );` 11 11 12 12 in form name="lostpasswordform" 13 do_action( 'lostpassword_form' ); 13 `do_action( 'lostpassword_form' );` 14 14 15 15 in form name="registerform" 16 do_action( 'register_form' ); 16 `do_action( 'register_form' );` 17 17 18 18 in form name="resetpassform" 19 do_action( 'resetpass_form', $user ); 19 `do_action( 'resetpass_form', $user );` 20 20 21 21 22 22 I am requesting new additional action hooks to be created and placed at the top of each of the forms before any fields are defined. 23 23 24 For example, in 'form name="registerform"' a new action hook such as 'do_action( 'login_form_top' )'to appear directly after the form html line as follows:24 For example, in `form name="registerform"` a new action hook such as `do_action( 'login_form_top' )` to appear directly after the form html line as follows: 25 25 26 {{{ 26 27 <form name="loginform" id="loginform" action="<?php echo esc_url( site_url( 'wp-login.php', 'login_post' ) ); ?>" method="post"> 27 28 … … 40 41 </p> 41 42 ... 42 43 }}} 44 43 45 The other forms (lostpasswordform, registerform and resetpassform) would be updated with similar action hooks at the top of each form.