Update path to email template for analytics report

The path was recently changed with the merge of the Admin feature plugin into Core.
This commit is contained in:
Adrian Duffell 2022-05-02 12:07:08 +08:00
parent 1d52eef313
commit a67c547b8e
1 changed files with 1 additions and 1 deletions

View File

@ -25,7 +25,7 @@ class ReportCSVEmail extends \WC_Email {
*/
public function __construct() {
$this->id = 'admin_report_export_download';
$this->template_base = dirname( __DIR__ ) . '/includes/emails/';
$this->template_base = WC()->plugin_path() . '/includes/react-admin/emails/';
$this->template_html = 'html-admin-report-export-download.php';
$this->template_plain = 'plain-admin-report-export-download.php';
$this->report_labels = array(