BBP_Component::__construct( array $args = array() )
bbPress Component loader
Description Description
Parameters 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: array()
Source Source
File: includes/common/classes.php
public function __construct( $args = array() ) { if ( empty( $args ) ) { return; } $this->setup_globals( $args ); $this->includes(); $this->setup_actions(); }
Changelog Changelog
Version | Description |
---|---|
2.0.0 | Introduced. |