BP_XProfile_Field::__get( string $key )

Magic getter.

Description

Parameters

$key

(string) (Required) Property name.

Return

(string|null)

Source

File: bp-xprofile/classes/class-bp-xprofile-field.php

	public function __get( $key ) {
		switch ( $key ) {
			case 'default_visibility' :
				return $this->get_default_visibility();
				break;

			case 'allow_custom_visibility' :
				return $this->get_allow_custom_visibility();
				break;

			case 'alternate_name' :
				return $this->get_alternate_name();
				break;
		}
	}

Changelog

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