wpseek.com
WordPress开发者和主题制作者的搜索引擎
wp_prevent_unsupported_mime_type_uploads › WordPress过滤钩子
Since6.8.0
已弃用n/a
› apply_filters( 'wp_prevent_unsupported_mime_type_uploads', true, $files['file']['type'] ?? null )
| 参数: (2) |
|
| 定义在: | |
| 文档: |
Filter whether the server should prevent uploads for image types it doesn't support. Default true.
Developers can use this filter to enable uploads of certain image types. By default image types that are not supported by the server are prevented from being uploaded.Related Functions: get_post_mime_types, wp_print_update_row_templates, wp_render_elements_support_styles, wp_get_mime_types, get_allowed_mime_types, get_post_mime_type