wc_rest_allowed_image_mime_types()
Returns image mime types users are allowed to upload via the API.
Description Description
Return Return
(array)
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', ) ); }
Changelog Changelog
Version | Description |
---|---|
2.6.4 | Introduced. |