Skip to content

Instantly share code, notes, and snippets.

@idokd
Created November 11, 2023 11:51
Show Gist options
  • Save idokd/08bb3246c5f5b090fb0961692f9a3905 to your computer and use it in GitHub Desktop.
Save idokd/08bb3246c5f5b090fb0961692f9a3905 to your computer and use it in GitHub Desktop.
villatheme woocommerce-email-template-customizer rtl fix
/**
* Plugin Name: WooCommerce Email Template Customizer Premium
* Plugin URI: https://villatheme.com/extensions/woocommerce-email-template-customizer/
* Description: Make your WooCommerce emails become professional.
* Version: 1.2.0
*/
fix for rtl issue
woocommerce-email-template-customizer/includes/email-render.php
line 247: add dir="" attr to main table
<table align='center' width='100%' border='0' cellpadding='0' cellspacing='0' border="0" dir="<?php echo esc_attr( $this->direction ); ?>">
woocommerce-email-template-customizer/includes/email-trigger.php
line 478: add template_id param to render init
$email_render = Email_Render::init( [ 'template_id' => $this->template_id ] );
line 565: add template_id param to render init
$email_render = Email_Render::init( [ 'template_id' => $this->use_default_temp ] );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment