wpseek.com
WordPress开发者和主题制作者的搜索引擎



send_new_site_email › WordPress过滤钩子

Since5.6.0
已弃用n/a
apply_filters( 'send_new_site_email', true, $site, $user )
参数: (3)
  • (bool) $send Whether to send the email.
    Required: Yes
  • (WP_Site) $site Site object of the new site.
    Required: Yes
  • (WP_User) $user User object of the administrator of the new site.
    Required: Yes
定义在:
文档:

Filters whether to send an email to the Multisite network administrator when a new site is created.

Return false to disable sending the email.





源码

if ( ! apply_filters( 'send_new_site_email', true, $site, $user ) ) {