woocommerce_rest_allowed_image_mime_types хук-фильтр . WC 2.6.4
Returns image mime types users are allowed to upload via the API.
Использование
add_filter( 'woocommerce_rest_allowed_image_mime_types', 'filter_function_name_1676' ); function filter_function_name_1676( $array ){ // filter... return $array; }
- $array
- -
Список изменений
С версии 2.6.4 | Введена. |
Где вызывается хук
woocommerce_rest_allowed_image_mime_types
woocommerce/includes/wc-rest-functions.php 48-58
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', ) );