new_site_email

過濾鉤子
apply_filters( 'new_site_email', $new_site_email, $site, $user )
引數
  • (array) $new_site_email { Used to build wp_mail(). @type string $to The email address of the recipient. @type string $subject The subject of the email. @type string $message The content of the email. @type string $headers Headers. }
    Required:
  • (WP_Site) $site Site object of the new site.
    Required:
  • (WP_User) $user User object of the administrator of the new site.
    Required:
定義位置
相關勾子
send_new_site_emailpre_user_emailsite_detailswp_installed_emailnetwork_site_url
相關方法
sanitize_emailget_site_metanetwork_site_urlvalidate_emailis_emailget_site_url
引入
5.6.0
棄用
-

new_site_email: 這個過濾鉤子用於修改在多站點網路中建立新站點時傳送的電子郵件的收件人和其他資訊。

在建立新站點時過濾傳送給多站點網路管理員的電子郵件內容。

內容應格式化為通過wp_mail()傳輸。

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
$new_site_email = apply_filters( 'new_site_email', $new_site_email, $site, $user );
$new_site_email = apply_filters( 'new_site_email', $new_site_email, $site, $user );
$new_site_email = apply_filters( 'new_site_email', $new_site_email, $site, $user );

常見問題

FAQs
檢視更多 >