acf_get_field_type_prop() ACF 5.0.0
This function will return a field type's property
Хуков нет.
Возвращает
(Массив).
Использование
acf_get_field_type_prop( $name, $prop );
- (n/a) (обязательный)
Список изменений
С версии 5.0.0 | Введена. |
Код acf_get_field_type_prop() acf get field type prop ACF 5.9.1
function acf_get_field_type_prop( $name = '', $prop = '' ) {
$type = acf_get_field_type( $name );
return ($type && isset($type->$prop)) ? $type->$prop : null;
}