Hook list of wp-login.php

Action / FilterNameParamDescriptionContainerCall
Actionlogin_initFires when the login form is initialized.
Actionlogin_form_$actionFires 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
Filterpost_password_expiresint $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
Filterlostpassword_redirectstring $lostpassword_redirect The redirect destination URL.Filter the URL redirected to after submitting the lostpassword/retrievepassword form.action=lostpassword||action=retrievepassword
Actionlost_passwordFires before the lost password form.action=lostpassword||action=retrievepasswordBefore display login_header()
Actionlostpassword_formFires inside the lostpassword form tags, before the hidden fields.action=lostpassword||action=retrievepasswordAfter the head form and before user_login input
Filterregister $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 formAfter the form
Actionvalidate_password_resetFires before the password reset procedure is validated.action=resetpass|action=rpBefore login_header()
Actionresetpass_formWP_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=rpBefore submit button
Filterwp_signup_locationstring $sign_up_url The sign up URL.Filter the Multisite sign up URL.action=register
Filterregistration_redirectstring $registration_redirect The redirect destination URL.Filter the registration redirect URL.action=register
Actionregister_formFires following the 'E-mail' field in the user registration form.action=registerAfter email input
Filterlogin_redirectstring $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|defaultBefore the form
Filterwp_login_errorsobject $errors WP Error object.
string $redirect_to Redirect destination URL.
Filter the login page errors.action=login|defaultBefore the form
Actionlogin_form Fires following the 'Password' field in the login form.action=login|defaultAfter password input and before submit
Filtershake_error_codesarray $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
Actionlogin_enqueue_scriptsEnqueue scripts and styles for the login page.login_header()In of the login page
Actionlogin_headFires in the login page header after scripts are enqueued.login_header()In of the login page after enqueue script and style
Filterlogin_headerurlstring $login_header_url Login header logo URL.Filter link URL of the header logo above login form.login_header()In login page header
Filterlogin_headertitlestring $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
Filterlogin_body_classarray $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
Filterlogin_errorsstring $errors Login error message.login_header()Just after the title
Filterlogin_messagestring $messages Login messages.Filter the message to display above the login form.login_header()Just after the title
Actionlostpassword_postFires before errors are returned from a password reset request.retrieve_password()Before email and filter
Actionretrieve_passwordstring $user_login The user login name.Fires before a new password is retrieved.retrieve_password()Before email and filter and after action lostpassword_post
Filterallow_password_resetbool 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
Actionretrieve_password_keystring $title Default email title.Filter the subject of the password reset email.retrieve_password()
Filterretrieve_password_title$title : Default email title.Filter the subject of the password reset email.retrieve_password()After generated new password and before email
Filterretrieve_password_messagestring $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
Actionlogin_footerFires in the login page footer.login_footer()In the footer of the login page

1 commentaire sur “Hook list of wp-login.php”

Laisser un commentaire

Votre adresse e-mail ne sera pas publiée. Les champs obligatoires sont indiqués avec *