Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Enable the use of shortcodes in WordPress text widgets. Source: https://developer.wordpress.org/reference/functions/do_shortcode/
<?php
//* Enable the use of shortcodes in text widgets
add_filter('widget_text', 'do_shortcode');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.