Title: [Plugin: bbPress] bbp_close_topic Bug
Last modified: August 20, 2016

---

# [Plugin: bbPress] bbp_close_topic Bug

 *  [Ben Casey](https://wordpress.org/support/users/casben79/)
 * (@casben79)
 * [14 years, 7 months ago](https://wordpress.org/support/topic/plugin-bbpress-bbp_close_topic-bug/)
 * V2.0 Of bbpress, what a great piece of software!
 * Only bug I have found in developing a heavily integrated site id in the function`
   bbp_close_topic()` in `/bbp-includes/bbp-topic-functions.php.`
 * The call to `bbp_get_closed_status_id()` is missing the () at the end, hence 
   PHP thinks it is looking for a constant, not running a function.
 * My workaround is to place the following code in my theme functions.php file:
   `
   define( 'bbp_get_closed_status_id' , bbp_get_closed_status_id() );`
 * Just thought I’d mention as i could not find this anywhere online.
 * Cheers
    Ben
 * [http://wordpress.org/extend/plugins/bbpress/](http://wordpress.org/extend/plugins/bbpress/)

The topic ‘[Plugin: bbPress] bbp_close_topic Bug’ is closed to new replies.

 * ![](https://ps.w.org/bbpress/assets/icon.svg?rev=978290)
 * [bbPress](https://wordpress.org/plugins/bbpress/)
 * [Support Threads](https://wordpress.org/support/plugin/bbpress/)
 * [Active Topics](https://wordpress.org/support/plugin/bbpress/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/bbpress/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/bbpress/reviews/)

 * 0 replies
 * 1 participant
 * Last reply from: [Ben Casey](https://wordpress.org/support/users/casben79/)
 * Last activity: [14 years, 7 months ago](https://wordpress.org/support/topic/plugin-bbpress-bbp_close_topic-bug/)
 * Status: not resolved