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 Description
Due to the way BuddyPress’ group admin settings page saves its settings, we need to let BP know that bbPress added a forum.
See also See also
Source Source
File: includes/extend/buddypress/groups.php
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 Changelog
Version | Description |
---|---|
2.4.0 | Introduced. |