I've got a shortcode setup using the Shortcoder plugin. It returns some text that I've defined (which will be changed on a weekly basis).
I'm trying to simplify weekly changes as much as possible for my client.
Using this shortcode is great - because I can put the same text anywhere on the site, and it will automatically update when I update the content of that shortcode.
However, I'm trying to get it to work within a WooCommerce email - which doesn't work, because it's obviously off the site so can't 'translate' the shortcode.
Is there any way that I could either:
a) Make the email template take the value of the shortcode and output it in the HTML email b) When a customer places their order, WooCommerce takes the value of the shortcode and inputs this into the DB, so I can then call this in the email?
Any help appreciated.
$my_shortcode_contents = apply_shortcodes('[my_shortcode]');) and then pass it to the email somehow?