ACF_Legacy_Locations::__getpublicACF 5.9.0

Magic __get method for backwards compatibility.

Method of the class: ACF_Legacy_Locations{}

No Hooks.

Returns

Mixed.

Usage

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

Changelog

Since 5.9.0 Introduced.

ACF_Legacy_Locations::__get() code ACF 6.0.4

public function __get( $key ) {
	// _doing_it_wrong( __FUNCTION__, __( 'The ACF_Locations class should not be accessed directly.', 'acf' ), '5.9.0' );

	switch ( $key ) {
		case 'locations':
			return call_user_func( 'acf_get_location_types' );
	}
	return null;
}