bbdev

BBPress - shortcode in topic/reply content

May 25th, 2016
61
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.29 KB | None | 0 0
  1. <?php
  2. add_filter( 'bbp_get_topic_content', 'buddyboss_content_run_shortcode', 11, 2 );
  3. add_filter( 'bbp_get_reply_content', 'buddyboss_content_run_shortcode', 11, 2 );
  4. function buddyboss_content_run_shortcode( $content, $post_id ){
  5.     $content = do_shortcode( $content );
  6.     return $content;
  7. }
Add Comment
Please, Sign In to add comment