BP_Theme_Compat::__get( string $property )

Get a theme’s property.

Description

Parameters

$property

(Required) Property name.

Return

(mixed) The value of the property if it exists, otherwise an empty string.

Source

File: bp-core/classes/class-bp-theme-compat.php

	public function __get( $property ) {
		return array_key_exists( $property, $this->_data ) ? $this->_data[$property] : '';
	}

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.