admin_email_confirm
Fires before the admin email confirm form.
Использование
add_action( 'admin_email_confirm', 'wp_kama_admin_email_confirm_action' ); /** * Function for `admin_email_confirm` action-hook. * * @param WP_Error $errors A `WP_Error` object containing any errors generated by using invalid credentials. Note that the error object may not contain any errors. * * @return void */ function wp_kama_admin_email_confirm_action( $errors ){ // action... }
- $errors(WP_Error)
- A WP_Error object containing any errors generated by using invalid credentials. Note that the error object may not contain any errors.
Список изменений
С версии 5.3.0 | Введена. |
Где вызывается хук
В файле: /wp-login.php
admin_email_confirm
wp-login.php 665
do_action( 'admin_email_confirm', $errors );