Forums

Join
bbPress Support ForumsPluginsbbp_shortcodes

Info

bbp_shortcodes

  1. I am trying to figure out how to allow custom shortcodes in topic posts. So far i've been trying to use bbp_shortcodes like this.

    function bbp_custom_shortcode($codes) {
    $codes[] = array('item' => 'item_func');

    return $codes;
    }
    add_filter( 'bbp_shortcodes', 'bbp_custom_shortcode');

    The codes array is appended but it does nothing Can you explain how to do it properly.

  2. this works:

    add_action( 'bbp_get_reply_content', 'do_shortcode');

    but it does allow every shortcode.

  3. I've done the same thing to my installation, however, you may want to use a check to check a users role so only certain roles can post shortcode.

  4. You must log in to post.