Enable shortcodes in WordPress Emails

Scenario

When a user registers on my site, they are sent the usual email. I’m using Pie Register to show a custom registration form and send customised emails.

What do I have

The plugin I’m writing, needs to add a QR code to the email. I register the shortcode with the usual:

add_shortcode('channel_qr','generate_qr_code');

And then in the template of the email I put: [channel_qr]

My Question

How do I make this QR code actually run? I stumbled across this, but unfortunately no help to get it to process in the email…


Source: shortcode

Leave a Reply