acf_get_field_type_prop()ACF 5.0.0

acf_get_field_type_prop

This function will return a field type's property

Хуков нет.

Возвращает

(Массив).

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

acf_get_field_type_prop( $name, $prop );
$name **
-
По умолчанию: ''
$prop **
-
По умолчанию: ''

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

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

Код acf_get_field_type_prop() ACF 6.0.4

function acf_get_field_type_prop( $name = '', $prop = '' ) {
	$type = acf_get_field_type( $name );
	return ( $type && isset( $type->$prop ) ) ? $type->$prop : null;
}