BP_Groups_Group::__construct( int|null $id = null, array $args = array() )
Constructor method.
Description
Parameters
- $id
-
(Optional) If the ID of an existing group is provided, the object will be pre-populated with info about that group.
Default value: null
- $args
-
(Optional) Array of optional arguments.
- 'populate_extras'
(bool) Deprecated.
Default value: array()
- 'populate_extras'
Source
File: bp-groups/classes/class-bp-groups-group.php
public function __construct( $id = null, $args = array() ) { if ( !empty( $id ) ) { $this->id = (int) $id; $this->populate(); } }
Changelog
Version | Description |
---|---|
BuddyPress 1.6.0 | 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.