Last active
March 17, 2025 01:14
-
-
Save danielbitzer/bed363f734625afba0e37617140ef321 to your computer and use it in GitHub Desktop.
AutomateWoo - Add WP Shortcode support to workflow emails
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/* | |
* Add shortcode support to to AutomateWoo email content. | |
* | |
* NOTE: Using shortcode's in emails is discouraged because most shortcodes don’t output valid HTML for email. | |
* Also many shortcodes simply don't work outside of the frontend template context. | |
*/ | |
add_filter( 'automatewoo_email_content', 'shortcode_unautop', 11 ); | |
add_filter( 'automatewoo_email_content', 'do_shortcode', 11 ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment