Snippets: Allow Shortcodes in bbPress Forumns & Replies

By default bbPress doesn't support shortcodes for the output of the Forum descriptions or in replies. You can use the do_shortcode function to include support by hooking into the bbPress content filters as shown below. Simply add this code to your child theme's functions.php file

add_filter( 'bbp_get_forum_content', 'do_shortcode' );
add_filter( 'bbp_get_reply_content', 'do_shortcode' );

Snippet Type: PHP

Posted Under: bbPress

All PHP snippets should be added via a child theme's functions.php file.