wc_rest_allowed_image_mime_types()
Returns image mime types users are allowed to upload via the API.
Хуки из функции
Возвращает
Массив
.
Использование
wc_rest_allowed_image_mime_types();
Список изменений
С версии 2.6.4 | Введена. |
Код wc_rest_allowed_image_mime_types() wc rest allowed image mime types WC 9.8.2
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', 'webp' => 'image/webp', ) ); }