BP_XProfile_Field::__get( string $key )

Magic getter.


Parameters Parameters

$key

(string) (Required) Property name.


Top ↑

Return Return

(string|null)


Source 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;
		}
	}


Top ↑

Changelog Changelog

Changelog
Version Description
2.4.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

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