wpseek.com
A WordPress-centric search engine for devs and theme authors



send_new_site_email › WordPress Filter Hooks

Since5.6.0
Deprecatedn/a
apply_filters( 'send_new_site_email', true, $site, $user )
Parameters: (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
Defined at:
Codex:

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

Return false to disable sending the email.





Source

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