BBP_Forums_Group_Extension::create_screen( $group_id )
Show forums and new forum form when creating a group
Description
Source
File: bp-forums/groups.php
public function create_screen( $group_id = 0 ) {
// Bail if not looking at this screen
if ( !bp_is_group_creation_step( $this->slug ) )
return false;
// Check for possibly empty group_id
if ( empty( $group_id ) ) {
$group_id = bp_get_new_group_id();
}
$checked = bp_get_new_group_enable_forum() || groups_get_groupmeta( $group_id, 'forum_id' ); ?>
<h4><?php esc_html_e( 'Group Forum', 'buddyboss' ); ?></h4>
<p><?php esc_html_e( 'Create a discussion forum to allow members of this group to communicate in a structured, bulletin-board style fashion.', 'buddyboss' ); ?></p>
<p class="checkbox">
<label><input type="checkbox" name="bbp-create-group-forum" id="bbp-create-group-forum" value="1"<?php checked( $checked ); ?> /> <?php esc_html_e( 'Yes. I want this group to have a discussion forum.', 'buddyboss' ); ?></label>
</p>
<?php
}
Changelog
| Version | Description |
|---|---|
| bbPress (r3465) | 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.