There’s a WordPress codex article that suggests one way to handle this sort of thing is make a new shortcode that returns the original shortcode with the do_shortcode function.
Below in the link you’ll find an example that shows how to make a new shortcode that loads in your custom PHP code and the original shortcode. To use this example, you place the code in a functions file on your site (either in a theme’s functions.php file or in a separate plugin), then you add the new [this_month_event_table] to a page.
The support post ‘Custom [php] code’ is closed to new replies.
Have a question about this support post? Create a new support post in our support forums and include a link to this existing support post so we can help you.
Support forum for Event Espresso 3 and Event Espresso 4.