1. 首页
  2. WordPress 函数手册

new_user_email_admin_notice()

new_user_email_admin_notice()

添加管理员通知,提醒用户在电子邮件地址更改后检查确认请求电子邮件。
Adds an admin notice alerting the user to check for confirmation request email after email address change.

目录锚点:#返回#源码


返回(Return)

无返回值


源码(Source)

/**
 * Adds an admin notice alerting the user to check for confirmation email
 * after email address change.
 *
 * @since 3.0.0
 */
function new_user_email_admin_notice() {
	if ( strpos( $_SERVER['PHP_SELF'], 'profile.php' ) && isset( $_GET['updated'] ) && $email = get_option( get_current_user_id() . '_new_email' ) )
		echo "" . sprintf( __( "Your email address has not been updated yet. Please check your inbox at %s for a confirmation email." ), $email['newemail'] ) . "";
}
更新版本 源码位置 使用 被使用
4.9.0 wp-includes/user.php:2898 0 4

new_user_email_admin_notice() 为WP2原创文章,链接:https://www.wp2.cn/functions/new_user_email_admin_notice/

发表评论

您的电子邮箱地址不会被公开。