BBP_Forums_Group_Extension::group_settings_hidden_field()
Add a hidden input field on the group settings page if the group forum is enabled.
Description
Due to the way BuddyBoss’ group admin settings page saves its settings, we need to let BP know that Forums added a forum.
See also
Source
File: bp-forums/groups.php
1159 1160 1161 1162 1163 1164 1165 1166 1167 1168 | public function group_settings_hidden_field() { // if a forum is not enabled, we don't need to add this field if ( ! bp_group_is_forum_enabled() ) return ; ?> <input type= "hidden" name= "group-show-forum" id= "group-show-forum" value= "1" /> <?php } |
Changelog
Version | Description |
---|---|
bbPress (r5026) | Introduced. |
Questions?
We're always happy to help with code or other questions you might have! Search our developer docs, contact support, or connect with our sales team.