This function’s access is marked private. This means it is not intended for use by plugin or theme developers, only in other core functions. It is listed here for completeness.
BBP_Forums_Group_Extension::setup_variables()
Setup the group forums class variables
Description
Source
File: bp-forums/groups.php
private function setup_variables() { // Component Name $this->name = __( 'Discussions', 'buddyboss' ); $this->nav_item_name = __( 'Discussions', 'buddyboss' ); // Component slugs (hardcoded to match Forums 1.x functionality) $this->slug = get_option( '_bbp_forum_slug', 'forum' ); $this->topic_slug = get_option( '_bbp_topic_slug', 'discussions' ); $this->reply_slug = get_option( '_bbp_reply_slug', 'reply' ); // Forum component is visible $this->visibility = 'public'; // Set positions towards end $this->create_step_position = 15; $this->nav_item_position = 10; // Allow create step and show in nav $this->enable_create_step = true; $this->enable_nav_item = true; $this->enable_edit_item = true; // Template file to load, and action to hook display on to $this->template_file = 'groups/single/plugins'; $this->display_hook = 'bp_template_content'; }
Changelog
Version | Description |
---|---|
bbPress () | 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.