Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Allow shortcodes to be used under text widget.
<?php
// Filters that allow shortcodes in Text widgets
add_filter( 'widget_text', 'shortcode_unautop' );
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.