wc_rest_allowed_image_mime_types()

Returns image mime types users are allowed to upload via the API.


Description Description


Return Return

(array)


Top ↑

Source Source

File: includes/wc-rest-functions.php

function wc_rest_allowed_image_mime_types() {
	return apply_filters(
		'woocommerce_rest_allowed_image_mime_types',
		array(
			'jpg|jpeg|jpe' => 'image/jpeg',
			'gif'          => 'image/gif',
			'png'          => 'image/png',
			'bmp'          => 'image/bmp',
			'tiff|tif'     => 'image/tiff',
			'ico'          => 'image/x-icon',
		)
	);
}

Top ↑

Changelog Changelog

Changelog
Version Description
2.6.4 Introduced.


Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.