[wordpress插件] Comments with files带文件的注释

wordpress 插件 文章 2020-03-29 09:50 503 0 全屏看文

AI助手支持GPT4.0

评分
0
描述

FEATURES

功能

– Add attachments(multipe) in comments

–在评论中添加附件(多个)

– Checking attachments before uploads

–上传之前检查附件

– View attached attachment

–查看附件附件

The default file types allowed :
 

允许的默认文件类型:
 

– doc, xls, ppt
 

– doc,xls,ppt
 

– xlsx, docx, pptx
 

– xlsx,docx,pptx
 

– odt, ods
 

– ods,ods
 

– pdf,
 

– pdf,
 

– gif, jpeg, png

– gif,jpeg,png

The plugin uses the hook “filter_get_file_mime_types” : It allows to manage the types of files allowed.

该插件使用钩子“ filter_get_file_mime_types”:它允许管理允许的文件类型。

Example :

示例:

add_filter( 'filter_get_file_mime_types' , 'filter_get_file_mime_types_custom' );

  add_filter('filter_get_file_mime_types','filter_get_file_mime_types_custom');

function filter_get_file_mime_types_custom( $types ) {    

函数filter_get_file_mime_types_custom($ types){    

$types[] = 'text/plain';    

$ types [] ='text / plain';    

return $types;

返回$ types;

}

}

安装步骤

    1. Upload the plugin files to the /wp-content/plugins/comments-with-files directory, or install the plugin through the WordPress plugins screen directly.
    2. 将插件文件上传到 / wp-content / plugins / comments-with-files 目录,或直接通过WordPress插件屏幕安装插件。

    3. Activate the plugin through the ‘Plugins’ screen in WordPress
    4. 通过WordPress中的“插件”屏幕激活插件

下载地址
https://downloads.wordpress.org/plugin/comments-with-files.1.0.0.zip
-EOF-

AI助手支持GPT4.0