From c7e1540dea3b0414d1f29f8fbfccaf4768e0b5d9 Mon Sep 17 00:00:00 2001 From: Nicola Mustone Date: Fri, 19 Jun 2015 17:01:37 +0200 Subject: [PATCH] added filters for emails placeholders --- includes/emails/class-wc-email.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/includes/emails/class-wc-email.php b/includes/emails/class-wc-email.php index 7a5a3e3b59e..997b4e1e446 100644 --- a/includes/emails/class-wc-email.php +++ b/includes/emails/class-wc-email.php @@ -222,9 +222,11 @@ class WC_Email extends WC_Settings_API { // Find/replace $this->find['blogname'] = '{blogname}'; $this->find['site-title'] = '{site_title}'; + $this->find = apply_filters( 'woocommerce_emails_placeholders_find_array', $this->find ); $this->replace['blogname'] = $this->get_blogname(); $this->replace['site-title'] = $this->get_blogname(); + $this->replace = apply_filters( 'woocommerce_emails_placeholders_replace_array', $this->replace ); // For multipart messages add_filter( 'phpmailer_init', array( $this, 'handle_multipart' ) );