admin_email_confirm
Action HookDescription
Fires before the admin email confirm form.Hook Information
File Location |
wp-login.php
View on GitHub
|
Hook Type | Action |
Line Number | 672 |
Hook Parameters
Type | Name | Description |
---|---|---|
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. |
Usage Examples
Basic Usage
<?php
// Hook into admin_email_confirm
add_action('admin_email_confirm', 'my_custom_function', 10, 1);
function my_custom_function($errors) {
// Your custom code here
}
Source Code Context
wp-login.php:672
- How this hook is used in WordPress core
<?php
667 * @since 5.3.0
668 *
669 * @param WP_Error $errors A `WP_Error` object containing any errors generated by using invalid
670 * credentials. Note that the error object may not contain any errors.
671 */
672 do_action( 'admin_email_confirm', $errors );
673
674 ?>
675
676 <form class="admin-email-confirm-form" name="admin-email-confirm-form" action="<?php echo esc_url( site_url( 'wp-login.php?action=confirm_admin_email', 'login_post' ) ); ?>" method="post">
677 <?php
PHP Documentation
<?php
/**
* Fires before the admin email confirm form.
*
* @since 5.3.0
*
* @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.
*/
Quick Info
- Hook Type: Action
- Parameters: 1
- File: wp-login.php
Related Hooks
Related hooks will be displayed here in future updates.