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()


Top ↑

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();
		}
	}

Top ↑

Changelog Changelog

Changelog
Version Description
1.6.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.