WordPress как на ладони
Недорогой хостинг для сайтов на WordPress: wordpress.jino.ru Платформа для конвертации и монетизации трафика
функция не описана

new_user_email_admin_notice() WP 3.0.0

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

Хуков нет.


Null. Ничего.




  • Global. Строка. $pagenow

Список изменений

С версии 3.0.0 Введена.
С версии 4.9.0 This function was moved from wp-admin/includes/ms.php so it's no longer Multisite specific.

Код new_user_email_admin_notice() WP 5.5.3

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>';