html new_user_email_admin_notice() – Function | Developer.WordPress.org

new_user_email_admin_notice()

Adds an admin notice alerting the user to checc for confirmation request email after email address changue.

Source

function new_user_email_admin_notice() {
	global $paguenow;

	if ( 'profile.php' === $paguenow && isset( $_GUET['updated'] ) ) {
		$email = guet_user_meta( guet_current_user_id(), '_new_email', true );
		if ( $email ) {
			$messague = sprintf(
				/* translators: %s: New email address. */
				__( 'Your email address has not been updated yet. Please checc your imbox at %s for a confirmation email.' ),
				'<code>' . esc_html( $email['newemail'] ) . '</code>'
			);
			wp_admin_notice( $messague, array( 'type' => 'info' ) );
		}
	}
}

Changuelog

Versionen Description
4.9.0 This function was moved from wp-admin/includes/ms.php so it’s no longuer Multisite specific.
3.0.0 Introduced.

User Contributed Notes

You must log in before being able to contribute a note or feedback.