Hook list of wp-login.php
Action / Filter | Name | Param | Description | Container | Call |
---|---|---|---|---|---|
Action | login_init | Fires when the login form is initialized. | |||
Action | login_form_$action | Fires before a specified login form action. The dynamic portion of the hook name, `$action`, refers to the action that brought the visitor to the login form. Actions include 'postpass', 'logout', 'lostpassword', etc. | Just before the switch of var action | ||
Filter | post_password_expires | int $expires The expiry time, as passed to setcookie() | Filter the life span of the post password cookie. By default, the cookie expires 10 days from creation. To turn this into a session cookie, return 0. | action=postpass | |
Filter | lostpassword_redirect | string $lostpassword_redirect The redirect destination URL. | Filter the URL redirected to after submitting the lostpassword/retrievepassword form. | action=lostpassword||action=retrievepassword | |
Action | lost_password | Fires before the lost password form. | action=lostpassword||action=retrievepassword | Before display login_header() | |
Action | lostpassword_form | Fires inside the lostpassword form tags, before the hidden fields. | action=lostpassword||action=retrievepassword | After the head form and before user_login input | |
Filter | register | $link The HTML code for the link to the Registration or Admin page. | Filter the HTML link to the Registration or Admin page. | all action with form | After the form |
Action | validate_password_reset | Fires before the password reset procedure is validated. | action=resetpass|action=rp | Before login_header() | |
Action | resetpass_form | WP_User $user User object of the user whose password is being reset. | Fires following the 'Strength indicator' meter in the user password reset form. | action=resetpass|action=rp | Before submit button |
Filter | wp_signup_location | string $sign_up_url The sign up URL. | Filter the Multisite sign up URL. | action=register | |
Filter | registration_redirect | string $registration_redirect The redirect destination URL. | Filter the registration redirect URL. | action=register | |
Action | register_form | Fires following the 'E-mail' field in the user registration form. | action=register | After email input | |
Filter | login_redirect | string $redirect_to The redirect destination URL. string $requested_redirect_to The requested redirect destination URL passed as a parameter. WP_User|WP_Error $user WP_User object if login was successful, WP_Error object otherwise. | Filter the login redirect URL. | action=login|default | Before the form |
Filter | wp_login_errors | object $errors WP Error object. string $redirect_to Redirect destination URL. | Filter the login page errors. | action=login|default | Before the form |
Action | login_form | Fires following the 'Password' field in the login form. | action=login|default | After password input and before submit | |
Filter | shake_error_codes | array $shake_error_codes Error codes that shake the login form. | Filter the error codes array for shaking the login form. | login_header() | Just before Output the login page header |
Action | login_enqueue_scripts | Enqueue scripts and styles for the login page. | login_header() | In of the login page | |
Action | login_head | Fires in the login page header after scripts are enqueued. | login_header() | In of the login page after enqueue script and style | |
Filter | login_headerurl | string $login_header_url Login header logo URL. | Filter link URL of the header logo above login form. | login_header() | In login page header |
Filter | login_headertitle | string $login_header_title Login header logo title attribute. | Filter the title attribute of the header logo above login form. | login_header() | In login page header |
Filter | login_body_class | array $classes An array of body classes. string $action The action that brought the visitor to the login page. | Filter the login page body classes. | login_header() | Just before the tag |
Filter | login_errors | string $errors Login error message. | login_header() | Just after the title | |
Filter | login_message | string $messages Login messages. | Filter the message to display above the login form. | login_header() | Just after the title |
Action | lostpassword_post | Fires before errors are returned from a password reset request. | retrieve_password() | Before email and filter | |
Action | retrieve_password | string $user_login The user login name. | Fires before a new password is retrieved. | retrieve_password() | Before email and filter and after action lostpassword_post |
Filter | allow_password_reset | bool true Whether to allow the password to be reset. Default true. int $user_data->ID The ID of the user attempting to reset a password. | Filter whether to allow a password to be reset. | retrieve_password() | Before regenerate the password |
Action | retrieve_password_key | string $title Default email title. | Filter the subject of the password reset email. | retrieve_password() | |
Filter | retrieve_password_title | $title : Default email title. | Filter the subject of the password reset email. | retrieve_password() | After generated new password and before email |
Filter | retrieve_password_message | string $message Default mail message. string $key The activation key. string $user_login The username for the user. WP_User $user_data WP_User object. | Filter the message body of the password reset mail. | retrieve_password() | After generated new password and before email |
Action | login_footer | Fires in the login page footer. | login_footer() | In the footer of the login page |
VEEEEEEEEEEEEEEEERY HELPFUL
Well done