What hooks should I use for pre-login and pre-registration actions?
Proper hooks for login and register actions: <?php function custom_plugin_hooks() { add_action( ‘login_form’, ‘custom_plugin_form_inputs’ ); add_filter( ‘authenticate’, ‘custom_plugin_login_check’, 100, 3 ); add_action( ‘register_form’, ‘custom_plugin_form_inputs’ ); add_action( ‘register_post’, ‘custom_plugin_registration_check’, 100, 3); } custom_plugin_hooks(); function custom_plugin_form_inputs() { echo “\n”.'<p>’; echo ‘<label>Custom input: <br />’; echo ‘<input type=”text” name=”custom-input” class=”input” value=”” />’; echo ‘</label></p>’.”\n”; } function custom_plugin_login_check($user, $username, … Read more