update_option_new_admin_email()修改新的邮件地址

目录

描述

This function intercepts changes to the administrator's email address. It keeps the address from being updated and instead sends the user a confirmation email, with a link to confirm the change.

update_option_new_admin_email() 描述

用法

<?php update_option_new_admin_email$old_value$value ); ?>

Note: This function is not intended to be called directly! See below.

update_option_new_admin_email() 用法

参数

$old_value

(string) (必填) The administrator's old email address.

默认值: None

$value

(string) (必填) The new email address.

默认值: None

update_option_new_admin_email() 参数

示例

This function is hooked to the 'update_option_new_admin_email' and 'add_option_new_admin_email' actions by default. If for some reason you would like to disable it and allow administrators to change their email address without confirmation, you can do this:

update_option_new_admin_email() 示例

注意

update_option_new_admin_email() 注意

历史

添加于 版本: 3.0.0

update_option_new_admin_email() 历史

源文件

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

update_option_new_admin_email() 源文件