Info
- 3 posts
- 2 voices
- Started 7 months ago by pjeurien
- Latest reply from travishill
- This topic is resolved
bbp_shortcodes
-
- Posted 7 months ago #
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.
-
- Posted 7 months ago #
this works:
add_action( 'bbp_get_reply_content', 'do_shortcode');
but it does allow every shortcode.
-
- Posted 7 months ago #
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.
-
You must log in to post.