• Resolved maheshcreativeskills

    (@maheshcreativeskills)


    Hello Support,

    I need to know about the I want to disable the plugin emails and want to use the default woocommerce emails for reset and new account.

    I tried below code

    add_filter('wppb_send_email', 'wppbc_disable_registration_emails', 10, 5);
    function wppbc_disable_registration_emails($disable, $to, $subject, $message, $context){
        if ( ($context ==  'email_user_account_info') || ($context ==  'email_admin_new_subscriber') ){
            return false;
        }
        return $disable;
    }
    
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.