wpseek.com
Eine auf WordPress spezialiserte Suchmaschine für Entwickler und Theme-Autoren
new_user_email_admin_notice › WordPress Function
Seit3.0.0
Veraltetn/v
› new_user_email_admin_notice ( Keine Parameter )
Definiert in: |
|
Codex: | |
Changelog: |
|
Adds an admin notice alerting the user to check for confirmation request email after email address change.
Ähnliche Funktionen: wp_get_admin_notice, site_admin_notice, wp_admin_notice, wpmu_new_site_admin_notification, wp_print_admin_notice_templates
Quellcode
function new_user_email_admin_notice() { global $pagenow; if ( 'profile.php' === $pagenow && isset( $_GET['updated'] ) ) { $email = get_user_meta( get_current_user_id(), '_new_email', true ); if ( $email ) { $message = sprintf( /* translators: %s: New email address. */ __( 'Your email address has not been updated yet. Please check your inbox at %s for a confirmation email.' ), '<code>' . esc_html( $email['newemail'] ) . '</code>' ); wp_admin_notice( $message, array( 'type' => 'info' ) ); } } }