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



new_site_email › WordPress过滤钩子

Since5.6.0
已弃用n/a
apply_filters( 'new_site_email', $new_site_email, $site, $user )
参数: (3)
  • (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: 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 the content of the email sent to the Multisite network administrator when a new site is created.

Content should be formatted for transmission via wp_mail().





源码

$new_site_email = apply_filters( 'new_site_email', $new_site_email, $site, $user );