Support » Plugin: Email Templates » disable woocommerce emails

  • I need to disable woocommerce mails. In other words, the plugin only sends wordpress emails to a new user, to change the password …

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Damian

    (@timersys)

    Are you using latest version?

    Thread Starter estereconectados

    (@estereconectados)

    yes, versio 1.3.2.1

    Thread Starter estereconectados

    (@estereconectados)

    Yes. I want woocommerce to keep its styles in mailing. If I activate the plugin the emails have the style of the plugin and I don’t need that.

    Thread Starter estereconectados

    (@estereconectados)

    Hello, can you give me support?

    Plugin Author Damian

    (@timersys)

    Hello can you try placing this code in your theme’s functions.php file

    
    if( class_exists('Mailtpl') ) {
        add_action('init',function(){
            $mailtpl = Mailtpl::instance();
            remove_action( 'woocommerce_email', array( $mailtpl->admin, 'woocommerce_integration'));
            remove_action( 'woocommerce_email_settings', array( $mailtpl->admin, 'woocommerce_preview_link'));
        });
        add_filter('woocommerce_mail_content',function($content){
    
            $mailtpl = Mailtpl::instance();
    
            remove_action( 'phpmailer_init', array( $mailtpl->mailer, 'send_email',50));
    
            return $content;
        });
    }
Viewing 5 replies - 1 through 5 (of 5 total)
  • You must be logged in to reply to this topic.