Home / Widgets / Enable Shortcode Execution in Text Widgets
Duplicate Snippet

Embed Snippet on Your Site

Enable Shortcode Execution in Text Widgets

Extend the default Text Widget with shortcode execution.

4.8k
Code Preview
php
<?php
add_filter( 'widget_text', 'do_shortcode' );

Comments

Add a Comment