BP_Groups_Group::__construct( int|null $id = null, array $args = array() )
Constructor method.
Description Description
Parameters 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 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 Changelog
Version | Description |
---|---|
1.6.0 | Introduced. |