new_user_email_admin_notice()给管理员发送一封新用户注册的提醒邮件

目录

描述

Notifies new users that their email address has not been update and confirmed.

new_user_email_admin_notice() 描述

用法

<?php new_user_email_admin_notice(); ?>

new_user_email_admin_notice() 用法

参数

This function does not accept any parameters

new_user_email_admin_notice() 参数

注意

  • filters the email text when a user changes emails and checks if email is updated. Sends a message to the user that their mail address has not been updated yet and send this to $email('newemail')

new_user_email_admin_notice() 注意

源文件

new_user_email_admin_notice() 函数的代码位于 wp-admin/includes/ms.php.

/* ----------------------------------
 * wordpress之魂 © http://wphun.com
 * ---------------------------------- */
/**
 * 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'] ) . "
"; }

new_user_email_admin_notice() 源文件

相关