首页 WordPress函数大全 check_upload_mimes()

check_upload_mimes()

2020-05-01 / 2310阅 / 悠然

如何你看完本文还不知道如何使用该函数,可以联系我定制视频教程,50元/个函数,学不会全额退款

check_upload_mimes( array $mimes )

Check an array of MIME types against a whitelist.

描述

WordPress ships with a set of allowed upload filetypes, which is defined in wp-includes/functions.php in get_allowed_mime_types(). This function is used to filter that list against the filetype whitelist provided by Multisite Super Admins at wp-admin/network/settings.php.

参数

$mimes

(array)
(Required)

返回

(array)

大家谈论
    我的见解