network_admin_email_change_email

过滤钩子
apply_filters( 'network_admin_email_change_email', $email_change_email, $old_email, $new_email, $network_id )
参数
  • (array) $email_change_email { Used to build wp_mail(). @type string $to The intended recipient. @type string $subject The subject of the email. @type string $message The content of the email. The following strings have a special meaning and will get replaced dynamically: - ###OLD_EMAIL### The old network admin email address. - ###NEW_EMAIL### The new network admin email address. - ###SITENAME### The name of the network. - ###SITEURL### The URL to the site. @type string $headers Headers. }
    Required:
  • (string) $old_email The old network admin email address.
    Required:
  • (string) $new_email The new network admin email address.
    Required:
  • (int) $network_id ID of the network.
    Required:
定义位置
相关勾子
send_network_admin_email_change_emailsend_email_change_emailnew_network_admin_email_contentemail_change_emailnew_admin_email_content
相关方法
wp_network_admin_email_change_notificationwp_site_admin_email_change_notificationnetwork_domain_checknetwork_admin_urlget_admin_page_titleupdate_network_option_new_admin_email
引入
4.9.0
弃用
-

network_admin_email_change_email: 当网络管理员改变WordPress多站点网络中的站点的电子邮件地址时,这个动作钩子被调用。你可以使用这个钩子在电子邮件地址被改变后执行额外的动作。

过滤网络管理员电子邮件地址更改时发送的电子邮件通知的内容。

$email_change_email = apply_filters( 'network_admin_email_change_email', $email_change_email, $old_email, $new_email, $network_id );

常见问题

FAQs
查看更多 >