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.
Possible hook names include:
- login_form_checkemail
- login_form_confirm_admin_email
- login_form_confirmaction
- login_form_entered_recovery_mode
- login_form_login
- login_form_logout
- login_form_lostpassword
- login_form_postpass
- login_form_register
- login_form_resetpass
- login_form_retrievepassword
- login_form_rp
Использование
add_action( 'login_form_(action)', 'wp_kama_login_form_action' ); /** * Function for `login_form_(action)` action-hook. * * @return void */ function wp_kama_login_form_action(){ // action... }
Список изменений
С версии 2.8.0 | Введена. |
Где вызывается хук
В файле: /wp-login.php
login_form_(action)
wp-login.php 564
do_action( "login_form_{$action}" );