ACF::__getpublicACF 5.9.0

Magic __get method for backwards compatibility.

Method of the class: ACF{}

No Hooks.

Returns

mixed.

Usage

$ACF = new ACF();
$ACF->__get( $key );
$key(string) (required)
Key name.

Changelog

Since 5.9.0 Introduced.

ACF::__get() code ACF 6.8.8

public function __get( $key ) {
	switch ( $key ) {
		case 'locations':
			return acf_get_instance( 'ACF_Legacy_Locations' );
		case 'json':
			return acf_get_instance( 'ACF_Local_JSON' );
	}
	return null;
}