BBP_Forums_Component::setup_globals( $args = array() )
Setup globals
Description Description
The BP_FORUMS_SLUG constant is deprecated, and only used here for backwards compatibility.
Source Source
File: includes/extend/buddypress/loader.php
public function setup_globals( $args = array() ) { $bp = buddypress(); // Define the parent forum ID if ( ! defined( 'BP_FORUMS_PARENT_FORUM_ID' ) ) { define( 'BP_FORUMS_PARENT_FORUM_ID', 1 ); } // Define a slug, if necessary if ( ! defined( 'BP_FORUMS_SLUG' ) ) { define( 'BP_FORUMS_SLUG', $this->id ); } // All arguments for forums component $args = array( 'path' => BP_PLUGIN_DIR, 'slug' => BP_FORUMS_SLUG, 'root_slug' => isset( $bp->pages->forums->slug ) ? $bp->pages->forums->slug : BP_FORUMS_SLUG, 'has_directory' => false, 'search_string' => esc_html__( 'Search Forums...', 'bbpress' ), ); parent::setup_globals( $args ); }
Changelog Changelog
Version | Description |
---|---|
2.1.0 | Introduced. |