Wordpress the_content - Shortcodes Not Working Inside WooCommerce Filter -
I'm tie my head against a wall.
I have a filter, such as attach the file to the email sent to woocommerce:
add_filter ("woocommerce_email_attachments", "__fuelprote_touch", 10, 3);
Filters, and files are attached just fine. However, the file I am attaching to is a PDF generated from a WordPress page. The page has a trespress shortcode in it.
Therefore, the output is parsed as content in the form of the woocommerce filter as the following content:
apply_filters ("the_content", $ facts [0] - & gt; POST_CONTENT);
The table of shortcodes is not working here, but works fine when viewing the actual page.
Any thoughts?
Have you tried experimenting inside the filter?
Comments
Post a Comment