new_network_admin_email_content

過濾鉤子
apply_filters( 'new_network_admin_email_content', $email_text, $new_admin_email )
引數
  • (string) $email_text Text in the email.
    Required:
  • (array) $new_admin_email { Data relating to the new network admin email address. @type string $hash The secure hash used in the confirmation link URL. @type string $newemail The proposed new network admin email address. }
    Required:
定義位置
相關勾子
new_admin_email_contentnew_user_email_contentsend_network_admin_email_change_emailnetwork_admin_email_change_emailnetwork_admin_menu
相關方法
wp_network_admin_email_change_notificationnetwork_admin_urlupdate_network_option_new_admin_emailis_network_adminnetwork_domain_checkwp_admin_bar_new_content_menu
引入
4.9.0
棄用
-

new_network_admin_email_content: 這個過濾鉤子用於修改在多站點網路中建立新站點時發給網路管理員的郵件內容。

過濾嘗試更改網路管理員電子郵件地址時傳送的電子郵件文字。

以下字串具有特殊含義,將動態替換:

  • USERNAME###當前使用者的使用者名稱
  • ADMIN_URL###單擊以確認電子郵件更改的連結
  • EMAIL###建議的新網路管理員電子郵件地址
  • SITENAME###網路的名稱
  • SITEURL###網路的URL
Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
$content = apply_filters( 'new_network_admin_email_content', $email_text, $new_admin_email );
$content = apply_filters( 'new_network_admin_email_content', $email_text, $new_admin_email );
$content = apply_filters( 'new_network_admin_email_content', $email_text, $new_admin_email );

常見問題

FAQs
檢視更多 >