acf_get_location_type()ACF 5.7.12

Returns a location type for the given name.

No Hooks.

Returns

(ACF_Location|null).

Usage

acf_get_location_type( $name );
$name(string) (required)
The location type name.

Changelog

Since 5.7.12 Introduced.

acf_get_location_type() code ACF 6.8.8

function acf_get_location_type( $name ) {
	return acf_get_store( 'location-types' )->get( $name );
}