Skip to content

How To Add Media Upload Button To bbPress

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;
}

1 thought on “How To Add Media Upload Button To bbPress”

Leave a Reply

Your email address will not be published. Required fields are marked *