Re: How to Write BBPress Plugins.
Not much documentation for bb, but it works exactly the same way as writing plugins for wp. So grab an existing bb plugin or look at the wp documentation: https://codex.wordpress.org/Writing_a_Plugin
It’s often trivial to convert a plugin; you just need to use a slightly different API and change the hooks and filters that you use.