Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save Yorlinq/ac4ba10d8da088dfc2f6c50a846b01b2 to your computer and use it in GitHub Desktop.
Save Yorlinq/ac4ba10d8da088dfc2f6c50a846b01b2 to your computer and use it in GitHub Desktop.

Revisions

  1. Yorlinq created this gist Jul 24, 2022.
    3 changes: 3 additions & 0 deletions Use shortcodes in HTML widgets - WordsPress
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,3 @@
    // Use shortcodes in HTML widgets
    add_filter('widget_text', 'shortcode_unautop');
    add_filter('widget_text', 'do_shortcode');