acf_get_compatibility()ACF 5.1.5

acf_get_compatibility

Returns true if compatibility is enabled for the given component.

Хуки из функции

Возвращает

true|false.

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

acf_get_compatibility( $name );
$name(строка) (обязательный)
The name of the component to check.

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

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

Код acf_get_compatibility() ACF 6.0.4

function acf_get_compatibility( $name ) {
	return apply_filters( "acf/compatibility/{$name}", false );
}