BP_Groups_Group::__set( string $key, mixed $value )

Magic setter.


Description Description

Used to maintain backward compatibility for properties that are now accessible only via magic method.


Parameters Parameters

$key

(Required) Property name.

$value

(Required) Property value.


Top ↑

Return Return

(bool)


Top ↑

Source Source

File: bp-groups/classes/class-bp-groups-group.php

	public function __set( $key, $value ) {
		switch ( $key ) {
			case 'user_has_access' :
				return $this->user_has_access = (bool) $value;

			default :
				$this->{$key} = $value;
		}
	}

Top ↑

Changelog Changelog

Changelog
Version Description
2.7.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

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