Konstantin Koveshenin from Automattic publishes some great little tips on his personal blog occasionally.
His post titled Don’t do_shortcode is one example of 2 ways you can print short codes and which one is best practice.
In this post, we’ll look at examples of how the 2 methods work and how to use them via your child themes functions file in any theme.
Firstly, here’s a very basic function which creates a short code named
[text_shortcode] for demonstration purposes.