{"id":353,"date":"2012-06-13T23:06:12","date_gmt":"2012-06-13T22:06:12","guid":{"rendered":"http:\/\/blogs.kent.ac.uk\/webdev\/?p=353"},"modified":"2012-06-13T23:06:12","modified_gmt":"2012-06-13T22:06:12","slug":"using-bbpress-plugin-hooks-for-wordpress","status":"publish","type":"post","link":"https:\/\/blogs.kent.ac.uk\/webdev\/2012\/06\/13\/using-bbpress-plugin-hooks-for-wordpress\/","title":{"rendered":"Using bbPress plugin hooks for WordPress"},"content":{"rendered":"<p>Something we&#8217;re currently investigating for blogs.kent is the (relatively) new bbPress plugin to enable simple collaborative forums. In case you don&#8217;t already know, bbPress was a stand-alone forum system. But Matt Mullenweg &#8211; the guy who started WordPress &#8211; <a href=\"http:\/\/bbpress.org\/forums\/topic\/future-of-bbpress\">put out a call for ideas about where to take bbPress<\/a>\u00a0and together the community\u00a0decided to develop bbPress as a plugin, allowing anyone to have forums as an integral part of their blog.<\/p>\n<p>One thing we wanted to do was use WordPress&#8217;s excellent filter system to intercept every forum post and reply and put in our own &#8220;report concern&#8221; button, just like we do on our blog posts. WordPress normally lets you intercept posts with the <em>the_content<\/em> filter. But for bbPress posts it&#8217;s a little different. Try <em>bbp_get_reply_content<\/em> instead.<\/p>\n<p>This wasn&#8217;t exactly the easiest thing to find out, but digging through the plugin code helped. There&#8217;s also <a href=\"http:\/\/etivite.com\/api-hooks\/bbpress\/\">a handy list of bbPress hooks<\/a>, although this doesn&#8217;t really help too much working out what they do.<\/p>\n<p>Anyway bbPress looks like a really promising move towards WordPress becoming a more richly featured social media and CMS tool rather than just a blogging platform. Watch this space for announcements about what we&#8217;ll be doing with bbPress.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Something we&#8217;re currently investigating for blogs.kent is the (relatively) new bbPress plugin to enable simple collaborative forums. In case you don&#8217;t already know, bbPress was &hellip; <a href=\"https:\/\/blogs.kent.ac.uk\/webdev\/2012\/06\/13\/using-bbpress-plugin-hooks-for-wordpress\/\">Read&nbsp;more<\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[1464],"tags":[9014,9016,707,9015,1031],"_links":{"self":[{"href":"https:\/\/blogs.kent.ac.uk\/webdev\/wp-json\/wp\/v2\/posts\/353"}],"collection":[{"href":"https:\/\/blogs.kent.ac.uk\/webdev\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blogs.kent.ac.uk\/webdev\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blogs.kent.ac.uk\/webdev\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/blogs.kent.ac.uk\/webdev\/wp-json\/wp\/v2\/comments?post=353"}],"version-history":[{"count":4,"href":"https:\/\/blogs.kent.ac.uk\/webdev\/wp-json\/wp\/v2\/posts\/353\/revisions"}],"predecessor-version":[{"id":393,"href":"https:\/\/blogs.kent.ac.uk\/webdev\/wp-json\/wp\/v2\/posts\/353\/revisions\/393"}],"wp:attachment":[{"href":"https:\/\/blogs.kent.ac.uk\/webdev\/wp-json\/wp\/v2\/media?parent=353"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blogs.kent.ac.uk\/webdev\/wp-json\/wp\/v2\/categories?post=353"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blogs.kent.ac.uk\/webdev\/wp-json\/wp\/v2\/tags?post=353"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}