MainWP Community

Disable all site emails

Disable all site emails on your child site.

Snippet Type

Execute on Child Sites

Snippet

add_filter('wp_mail','disabling_emails', 10,1);
function disabling_emails( $args ){
    unset ( $args['to'] );
    return $args;
}
1 Like