Email Heading not succesfully passing into `email_header.php`
-
We are trying to customize our email templates, and none of the headings are making it through, and we haven’t really even changed anything yet.
The heading is apparently supposed to be passed to the header template via
do_action( 'woocommerce_email_header', $email_heading )
, but the$email_heading
variable seems to be empty from the get-go.For example, if go into any email template and dump
$email_heading
right before thedo_action( 'woocommerce_email_header', $email_heading )
call, it returnsNULL
.I also explicitly set the var to see what would come through, and ..nothing.
Tried$email_heading='Fizz'
and$email_heading=array('email_heading'=>'Bang')
, and dumps from email_header.php areNULL
regardless.
I also tried toying withglobal
and$GLOBALS
, and cannot get any vars set in an email template to return anything in the email_header template.We NEEED some help.
I’ve been working on this for a few months now (on & off).
We’re running out of time, and I’m running out of ideas.
- The topic ‘Email Heading not succesfully passing into `email_header.php`’ is closed to new replies.