wpseek.com
Uma área de pesquisa sobre o WordPress para devs e autores do tema



send_new_site_email › Hooks de Filtros WordPress

Desde5.6.0
Obsoleton/a
apply_filters( 'send_new_site_email', true, $site, $user )
Parâmetros: (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
Definido em:
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.





Fonte

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