Alert: 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 Description
Source Source
File: includes/extend/buddypress/groups.php
private function setup_variables() { // Component Name $this->name = esc_html__( 'Forum', 'bbpress' ); $this->nav_item_name = esc_html__( 'Forum', 'bbpress' ); // Component slugs (hardcoded to match bbPress 1.x functionality) $this->slug = 'forum'; $this->topic_slug = 'topic'; $this->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 Changelog
Version | Description |
---|---|
2.1.0 | Introduced. |