acf/get_image_mime_types хук-фильтрACF 6.8.7

Filters the image MIME types allowed for image and gallery fields.

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

add_filter( 'acf/get_image_mime_types', 'wp_kama_acf_get_image_mime_types_filter' );

/**
 * Function for `acf/get_image_mime_types` filter-hook.
 * 
 * @param array $image_mimes The allowed image MIME types keyed by extension.
 *
 * @return array
 */
function wp_kama_acf_get_image_mime_types_filter( $image_mimes ){

	// filter...
	return $image_mimes;
}
$image_mimes(массив)
The allowed image MIME types keyed by extension.

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

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

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

acf_get_image_mime_types()
acf/get_image_mime_types
acf/includes/api/api-helpers.php 3109
$image_mimes = apply_filters( 'acf/get_image_mime_types', $image_mimes );

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

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