acf/compatibility/(name) хук-фильтрACF 5.1.5

acf_get_compatibility

Returns true if compatibility is enabled for the given component.

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

add_filter( 'acf/compatibility/(name)', 'wp_kama_acf_compatibility_name_filter' );

/**
 * Function for `acf/compatibility/(name)` filter-hook.
 * 
 * @param string $name The name of the component to check.
 *
 * @return string
 */
function wp_kama_acf_compatibility_name_filter( $name ){

	// filter...
	return $name;
}
$name(строка)
The name of the component to check.

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

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

Где вызывается хук

acf_get_compatibility()
acf/compatibility/(name)
acf/includes/compatibility.php 487
return apply_filters( "acf/compatibility/{$name}", false );

Где используется хук в Advanced Custom Fields PRO

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