-
-
Save chrisdavidmiles/ecaddb9ca9a6cf7343b36cc37c04fb6a to your computer and use it in GitHub Desktop.
A filter to enable shortcodes in WordPress comments
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
add_filter( 'comment_text', 'shortcode_unautop'); | |
add_filter( 'comment_text', 'do_shortcode' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment