wpseek.com
Un motore di ricerca WordPress per sviluppatori e autori di temi



wp_is_heic_image_mime_type › WordPress Function

Da6.7.0
Deprecaton/a
› wp_is_heic_image_mime_type ( $mime_type )
Parametri:
  • (string) $mime_type The mime type to check.
    Richiesto: Sì
Ritorna:
  • (bool) Whether the mime type is for a HEIC/HEIF image.
Definito a:
Codex:

Checks if a mime type is for a HEIC/HEIF image.



Sorgenti

function wp_is_heic_image_mime_type( $mime_type ) {
	$heic_mime_types = array(
		'image/heic',
		'image/heif',
		'image/heic-sequence',
		'image/heif-sequence',
	);

	return in_array( $mime_type, $heic_mime_types, true );
}