The issue you’re experiencing with the shortcode appearing in the mail subject header is likely due to a misconfiguration in one of your WordPress components – either a plugin like WooCommerce or the Kadence Mail Designer, or a theme function if you’re using a custom theme.
Here’s how you can troubleshoot and fix this issue:
- Check Email Templates: First, review the email templates in WooCommerce and Kadence Mail Designer. Look for any instance of the shortcode in the subject line and ensure it’s correctly formatted or removed.
- Plugin Conflict Check: Disable the Kadence Mail Designer temporarily and send a test email using WooCommerce. If the issue resolves, it indicates a problem with the Kadence plugin. Reactivate it and check its settings or reach out to their support for assistance.
- Theme Check: If you’re using a custom theme, switch temporarily to a default WordPress theme (like Twenty Twenty-One) and send a test email. If the issue goes away, the problem might be in your theme’s functions.
- WooCommerce Settings: In WooCommerce, go to ‘Settings’ > ‘Emails’ and check the settings for email subjects. Ensure no shortcodes are improperly used.
- Update Plugins and Themes: Ensure all your plugins and themes are up to date. Sometimes these issues are fixed in newer versions.
- Check for Custom Code: If you have added any custom code snippets to your theme’s
functions.php
file or a site-specific plugin, check to see if any might be modifying email headers.
After trying these steps, if the issue still persists,In such a case, providing more specific details about your setup, such as the version of WordPress, WooCommerce, Kadence Mail Designer, and the theme you’re using, would be helpful for further diagnosis.