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多站點網路中的站點的電子郵件地址時,這個動作鉤子被呼叫。你可以使用這個鉤子在電子郵件地址被改變後執行額外的動作。

過濾網路管理員電子郵件地址更改時傳送的電子郵件通知的內容。

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
$email_change_email = apply_filters( 'network_admin_email_change_email', $email_change_email, $old_email, $new_email, $network_id );
$email_change_email = apply_filters( 'network_admin_email_change_email', $email_change_email, $old_email, $new_email, $network_id );
$email_change_email = apply_filters( 'network_admin_email_change_email', $email_change_email, $old_email, $new_email, $network_id );

常見問題

FAQs
檢視更多 >