BP_Groups_Group::__set( string $key, mixed $value )
Magic setter.
Description
Used to maintain backward compatibility for properties that are now accessible only via magic method.
Parameters
- $key
-
(Required) Property name.
- $value
-
(Required) Property value.
Return
(bool)
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; } }
Changelog
Version | Description |
---|---|
BuddyPress 2.7.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.