wpseek.com
Eine auf WordPress spezialiserte Suchmaschine für Entwickler und Theme-Autoren



send_new_site_email › WordPress Filter Hooks

Seit5.6.0
Veraltetn/v
apply_filters( 'send_new_site_email', true, $site, $user )
Parameter: (3)
  • (bool) $send Whether to send the email.
    Erforderlich: Ja
  • (WP_Site) $site Site object of the new site.
    Erforderlich: Ja
  • (WP_User) $user User object of the administrator of the new site.
    Erforderlich: Ja
Definiert in:
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.





Quellcode

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