As a bbPress forum moderator/admin, sometimes you need to upload an image to your forums in order to make it easy for the person to understand what you’re trying to say. It’d require you to manually upload and copy image URL and then paste it into the discussion. That’s hard, right?
C.Bavota of Bavotasan.com came up with a great idea to make this task really easy. We have a great snippet which will add media upload button to bbPress, which will allow you to directly post images to your bbPress discussion.
add_filter( 'bbp_after_get_the_content_parse_args', 'tp_bbpress_upload_media' ); function tp_bbpress_upload_media( $args ) { $args['media_buttons'] = true; return $args; }
Is there any way to make sure only the site admins can see the media button?