Hello @alfredo1216
It seems you are trying to use a shortcode to insert dynamic content, such as the current year, into email templates. However, the constants you mentioned, such as USER_NAME and LAST_NAME, are not shortcodes.
Here are some points to clarify:
- Constants like USER_NAME and LAST_NAME are typically replaced with actual data using a find and replace method, rather than through a shortcode.
- Unfortunately, it is not possible to implement this functionality via the method you suggested using shortcodes.
- However, there is a filter hook called
eb_emailtmpl_constants_values
that you can use to manipulate the values of email constants. This filter provides all the email templates and their corresponding values.
- To use this filter, you can define a function that takes in the
$constants
parameter and returns an array of modified values for the constants. This function should be defined in the same file where you add the filter hook.
I hope this helps! Let me know if you have any further questions.
Regarding implementation of this feature in our future plugin update:
We have developed a generic solution keeping comprehensive situations in mind which the majority of our users experience. And, we avoid adding functionality to the core code of our plugins that are not used or requested on a multitude of levels by our active users. Because this will be the potential to make a terrible impact on the performance of our plugin.
We have registered this feature request with our product development team for validation. If approved, we will release this feature in our future plugin updates.
Thanks,
Team Edwiser