send_new_site_email

过滤钩子


apply_filters( 'send_new_site_email', true, $site, $user )
参数
  • (bool)
    $send
    Whether to send the email.
    Required:
  • (WP_Site)
    $site
    Site object of the new site.
    Required:
  • (WP_User)
    $user
    User object of the administrator of the new site.
    Required:
定义位置
  • wp-includes/ms-functions.php
    , line 1726
引入
5.6.0
弃用

过滤是否在创建新站点时向多站点网络管理员发送电子邮件。

返回false以禁止发送电子邮件。

if ( ! apply_filters( 'send_new_site_email', true, $site, $user ) ) {
声明:本站所有文章,如无特殊说明或标注,均为本站原创发布。任何个人或组织,在未征得本站同意时,禁止复制、盗用、采集、发布本站内容到任何网站、书籍等各类媒体平台。如若本站内容侵犯了原著者的合法权益,可联系我们进行处理。