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 ) ) {