BP_XProfile_Field::__get( string $key )

Magic getter.

Description

Parameters

$key

(Required) Property name.

Return

(string|null)

Source

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

324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
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.