new_user_email_admin_notice() – Adds an admin notice alerting the user to check for confirmation request email after email address change.

You appear to be a bot. Output may be restricted

Description

Adds an admin notice alerting the user to check for confirmation request email after email address change.

Usage

new_user_email_admin_notice();

Parameters

Returns

void

Source

File name: wordpress/wp-includes/user.php
Lines:

1 to 11 of 11
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 ) {
      /* translators: %s: New email address. */
      echo '<div class="notice notice-info"><p>' . sprintf( __( 'Your email address has not been updated yet. Please check your inbox at %s for a confirmation email.' ), '<code>' . esc_html( $email['newemail'] ) . '</code>' ) . '</p></div>';
    }
  }
}
 

 View on GitHub View on Trac