BuddyPress::__get( string $key )

Magic method for getting BuddyPress variables.

Description

Parameters

$key

(string) (Required) Key to return the value for.

Return

(mixed)

Source

File: class-buddypress.php

	public function __get( $key ) { return isset( $this->data[$key] ) ? $this->data[$key] : null; }

Changelog

Changelog
Version Description
BuddyPress 1.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.