Mika MAtikainen

Apr 15, 2020 · 4 min read

Adding Shortcodes to Widgets

Sometimes you just want add shortcodes to a text widget. Luckily, this is a simple one line solution.

[code lang=”php”] add_filter( ‘widget_text’, ‘do_shortcode’ ); [/code]

Subscribe To Our Newsletter

Join our mailing list to receive the latest news and updates from our team.

You have Successfully Subscribed!

Share This