wc_rest_allowed_image_mime_types دریافت لیست فرمت تصاویر مجاز برای آپلود
![wc_rest_allowed_image_mime_types دریافت لیست فرمت تصاویر مجاز برای آپلود](https://rapidcode.ir/wp-content/uploads/2020/07/image-t-1594026554.png)
تابع ووکامرسی wc_rest_allowed_image_mime_types – دریافت لیست فرمت تصاویر مجاز برای آپلود توسط کاربران
Syntax – سینتکس
(array) wc_rest_allowed_image_mime_types();
Usage – نحوه استفاده
if ( !function_exists( 'wc_rest_allowed_image_mime_types' ) ) { require_once ABSPATH . PLUGINDIR . 'woocommerce/includes/wc-rest-functions.php'; } // NOTICE! Understand what this does before running. $result = wc_rest_allowed_image_mime_types();
Defined – محل تعریف
/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', ) ); }
versions – نسخه ها
از نسخه : 2.6.4
نسخه فعلی : 3.0.6
دیگر نسخه ها : 3.0.6 , 3.0.5 , 3.0.4 , 3.0.3 , 3.0.2
ارسال نظر