BBP_Component::__construct( mixed $args = '' )
Forums Component loader
Description
Parameters
- $args
-
(Optional) Required. Supports these args: - name: Unique name (for internal identification) - id: Unique ID (normally for custom post type) - slug: Unique slug (used in query string and permalinks) - query: The loop for this component (WP_Query) - current_id: The current ID of the queried object
Default value: ''
Source
File: bp-forums/common/classes.php
public function __construct( $args = '' ) { if ( empty( $args ) ) return; $this->setup_globals( $args ); $this->includes(); $this->setup_actions(); }
Changelog
Version | Description |
---|---|
bbPress (r2700) | 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.