send_new_site_email

send_new_site_email

Hook Type: filter

See hook in core

Displaying hooks found in version: wordpress-6.7.2

apply_filters('send_new_site_email') is found 1 times:

  • /wp-includes/ms-functions.php line 1735
    1731
    1732
    1733
    1734
    1735
    1736
    1737
    1738
    1739
    1740
    * @param bool    $send Whether to send the email.
     * @param WP_Site $site Site object of the new site.
     * @param WP_User $user User object of the administrator of the new site.
     */
    if ( ! apply_filters( 'send_new_site_email', true, $site, $user ) ) {
        return false;
    }
     
    $switched_locale = false;
    $network_admin   = get_user_by( 'email', $email );