acf_get_location_type()ACF 5.7.12

Returns a location type for the given name.

Хуков нет.

Возвращает

(ACF_Location|null).

Использование

acf_get_location_type( $name );
$name(строка) (обязательный)
The location type name.

Список изменений

С версии 5.7.12 Введена.

Код acf_get_location_type() ACF 6.0.4

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