bp_media_allowed_document_type ()

函数获取文档支持扩展名。

描述

参数

美元的格式

字符串的)(必需的)

返回

(阵列|混合|弦 - 空隙)

文件:BP-Templates / BP-Nouveau /包括/文档/函数.php

函数bp_media_allowed_document_type(){$ extension_lists = array('bb_doc_1'=>数组('扩展'=>'.abw','mime_type'=>'application / x-abiword','description' => __('abiword文档)','buddyboss'),'is_default'=> 1,'is_active'=> 1,'图标'=>'','bb_doc_2'=>数组('扩展'=>'.abw','mime_type''=>'text / xml','=> __('abiword文档','buddyboss'),'is_default'=> 1,'is_active' => 1,'图标'=>'',),'bb_doc_3'=>数组('扩展'=>'.ace','mime_type'=>'application / x-ace-compress','description'=> __('ace存档','buddyboss'),'IS_Default'=> 1,'is_active' => 1,'图标'=>'',),'bb_doc_4'=>数组('扩展'=>'.ai','mime_type'=>'application / postscript''=> __('插图文件','buddyboss'),'is_default'=> 1,'is_active' => 1,'图标'=>'',),'bb_doc_5'=>数组('扩展'=>'.ai','mime_type'=>'application / pdf','=> __('插图文件','buddyboss'),'is_default'=> 1,'is_active'=> 1,'图标'=>'',),'bb_doc_6'=>数组('扩展'=>'.apk','mime_type'=>'application / vnd.android.package-archive','description'=> __('android package','buddyboss'),'is_default'=> 1,'is_active'=> 1,'图标'=>'','bb_doc_7'=>数组('扩展'=>'.apk','mime_type'=>'application / java-archive','=> __('android package','buddyboss'),'is_default'=> 1,'is_active' => 1,'图标'=>',),'bb_doc_8'=>数组('扩展'=>'.css','mime_type'=>'text / css','description'=> __('css','buddyboss'),'is_default'=> 1,'is_active'=> 1,'图标'=>'',),'bb_doc_9'=>数组('扩展'=>'.cs','mime_type'=>'文本/平原','描述'=> __('css','buddyboss'),'is_default'=> 1,'is_active' => 1,'图标'=>'','bb_doc_10'=>数组('extension'=>'.csv','mime_type'=>'text / csv','=> __('csv','buddyboss'),'is_default'=> 1,'is_active'=> 1,'图标'=>'',),'bb_doc_11'=>数组('扩展'=>'.doc','mime_type'=>'applaticatication / msword','=> __('word文档','buddyboss'),'is_default'=> 1,'is_active'=> 1,'图标'=>'','bb_doc_12'=>数组('extension'=>'.docm','mime_type'=>'application / vnd.ms-word.document.macroenabled.12',''=> __('Word Document(宏启用)','buddyboss'),'is_default'=> 1,'is_active'=> 1,'图标'=>'',),'bb_doc_13'=>数组('扩展'=>'.docm','mime_type'=> 'application/vnd.openxmlformats-officedocument.wordprocessingml.document', 'description' => __( 'Word Document (Macro Enabled)', 'buddyboss' ), 'is_default' => 1, 'is_active' => 1, 'icon' => '', ), 'bb_doc_14' => array( 'extension' => '.docx', 'mime_type' => 'application/vnd.openxmlformats-officedocument.wordprocessingml.document', 'description' => __( 'Word Document', 'buddyboss' ), 'is_default' => 1, 'is_active' => 1, 'icon' => '', ), 'bb_doc_15' => array( 'extension' => '.dotm', 'mime_type' => 'application/vnd.ms-word.template.macroenabled.12', 'description' => __( 'Word Template (Macro Enabled)', 'buddyboss' ), 'is_default' => 1, 'is_active' => 1, 'icon' => '', ), 'bb_doc_16' => array( 'extension' => '.dotx', 'mime_type' => 'application/vnd.openxmlformats-officedocument.wordprocessingml.document', 'description' => __( 'Word Template', 'buddyboss' ), 'is_default' => 1, 'is_active' => 1, 'icon' => '', ), 'bb_doc_17' => array( 'extension' => '.eps', 'mime_type' => 'application/postscript', 'description' => __( 'Encapsulated Postscript', 'buddyboss' ), 'is_default' => 1, 'is_active' => 1, 'icon' => '', ), 'bb_doc_18' => array( 'extension' => '.eps', 'mime_type' => 'image/x-eps', 'description' => __( 'Encapsulated Postscript', 'buddyboss' ), 'is_default' => 1, 'is_active' => 1, 'icon' => '', ), 'bb_doc_19' => array( 'extension' => '.gif', 'mime_type' => 'image/gif', 'description' => __( 'Graphics Interchange Format', 'buddyboss' ), 'is_default' => 1, 'is_active' => 1, 'icon' => '', ), 'bb_doc_20' => array( 'extension' => '.gz', 'mime_type' => 'application/x-gzip', 'description' => __( 'Gzip Archive', 'buddyboss' ), 'is_default' => 1, 'is_active' => 1, 'icon' => '', ), 'bb_doc_21' => array( 'extension' => '.gzip', 'mime_type' => 'application/gzip', 'description' => __( 'Gzip Archive', 'buddyboss' ), 'is_default' => 1, 'is_active' => 1, 'icon' => '', ), 'bb_doc_22' => array( 'extension' => '.htm', 'mime_type' => 'text/html', 'description' => __( 'HTML', 'buddyboss' ), 'is_default' => 1, 'is_active' => 1, 'icon' => '', ), 'bb_doc_23' => array( 'extension' => '.html', 'mime_type' => 'text/html', 'description' => __( 'HTML', 'buddyboss' ), 'is_default' => 1, 'is_active' => 1, 'icon' => '', ), 'bb_doc_24' => array( 'extension' => '.ico', 'mime_type' => 'image/x-icon', 'description' => __( 'ICO', 'buddyboss' ), 'is_default' => 1, 'is_active' => 1, 'icon' => '', ), 'bb_doc_25' => array( 'extension' => '.ics', 'mime_type' => 'text/calendar', 'description' => __( 'iCalendar', 'buddyboss' ), 'is_default' => 1, 'is_active' => 1, 'icon' => '', ), 'bb_doc_26' => array( 'extension' => '.ipa', 'mime_type' => 'application/octet-stream', 'description' => __( 'iOS Package', 'buddyboss' ), 'is_default' => 1, 'is_active' => 1, 'icon' => '', ), 'bb_doc_27' => array( 'extension' => '.jar', 'mime_type' => 'application/java-archive', 'description' => __( 'JAR Archive', 'buddyboss' ), 'is_default' => 1, 'is_active' => 1, 'icon' => '', ), 'bb_doc_28' => array( 'extension' => '.jpeg', 'mime_type' => 'image/jpeg', 'description' => __( 'Image File', 'buddyboss' ), 'is_default' => 1, 'is_active' => 1, 'icon' => '', ), 'bb_doc_29' => array( 'extension' => '.jpg', 'mime_type' => 'image/jpeg', 'description' => __( 'Image File', 'buddyboss' ), 'is_default' => 1, 'is_active' => 1, 'icon' => '', ), 'bb_doc_30' => array( 'extension' => '.js', 'mime_type' => 'application/javascript', 'description' => __( 'JavaScript', 'buddyboss' ), 'is_default' => 1, 'is_active' => 1, 'icon' => '', ), 'bb_doc_31' => array( 'extension' => '.js', 'mime_type' => 'text/plain', 'description' => __( 'JavaScript', 'buddyboss' ), 'is_default' => 1, 'is_active' => 1, 'icon' => '', ), 'bb_doc_32' => array( 'extension' => '.mp3', 'mime_type' => 'audio/mpeg', 'description' => __( 'MP3', 'buddyboss' ), 'is_default' => 1, 'is_active' => 1, 'icon' => '', ), 'bb_doc_33' => array( 'extension' => '.ods', 'mime_type' => 'application/vnd.oasis.opendocument.spreadsheet', 'description' => __( 'OpenDocument Spreadsheet', 'buddyboss' ), 'is_default' => 1, 'is_active' => 1, 'icon' => '', ), 'bb_doc_34' => array( 'extension' => '.odt', 'mime_type' => 'application/vnd.oasis.opendocument.text', 'description' => __( 'OpenDocument Text', 'buddyboss' ), 'is_default' => 1, 'is_active' => 1, 'icon' => '', ), 'bb_doc_35' => array( 'extension' => '.pdf', 'mime_type' => 'application/pdf', 'description' => __( 'PDF', 'buddyboss' ), 'is_default' => 1, 'is_active' => 1, 'icon' => '', ), 'bb_doc_36' => array( 'extension' => '.png', 'mime_type' => 'image/png', 'description' => __( 'Image File', 'buddyboss' ), 'is_default' => 1, 'is_active' => 1, 'icon' => '', ), 'bb_doc_37' => array( 'extension' => '.potm', 'mime_type' => 'application/vnd.ms-powerpoint.template.macroenabled.12', 'description' => __( 'PowerPoint Template (Macro Enabled)', 'buddyboss' ), 'is_default' => 1, 'is_active' => 1, 'icon' => '', ), 'bb_doc_38' => array( 'extension' => '.potx', 'mime_type' => 'application/vnd.openxmlformats-officedocument.presentationml.template', 'description' => __( 'PowerPoint Template', 'buddyboss' ), 'is_default' => 1, 'is_active' => 1, 'icon' => '', ), 'bb_doc_39' => array( 'extension' => '.potx', 'mime_type' => 'application/vnd.openxmlformats-officedocument.presentationml.presentation', 'description' => __( 'PowerPoint Template', 'buddyboss' ), 'is_default' => 1, 'is_active' => 1, 'icon' => '', ), 'bb_doc_40' => array( 'extension' => '.pps', 'mime_type' => 'application/vnd.ms-powerpoint', 'description' => __( 'PowerPoint Template', 'buddyboss' ), 'is_default' => 1, 'is_active' => 1, 'icon' => '', ), 'bb_doc_41' => array( 'extension' => '.ppsx', 'mime_type' => 'application/vnd.openxmlformats-officedocument.presentationml.slideshow', 'description' => __( 'PowerPoint Slideshow', 'buddyboss' ), 'is_default' => 1, 'is_active' => 1, 'icon' => '', ), 'bb_doc_42' => array( 'extension' => '.ppsx', 'mime_type' => 'application/vnd.openxmlformats-officedocument.presentationml.presentation', 'description' => __( 'PowerPoint Slideshow', 'buddyboss' ), 'is_default' => 1, 'is_active' => 1, 'icon' => '', ), 'bb_doc_43' => array( 'extension' => '.ppt', 'mime_type' => 'application/vnd.ms-powerpoint', 'description' => __( 'PowerPoint Presentation', 'buddyboss' ), 'is_default' => 1, 'is_active' => 1, 'icon' => '', ), 'bb_doc_44' => array( 'extension' => '.pptm', 'mime_type' => 'application/vnd.ms-powerpoint.presentation.macroenabled.12', 'description' => __( 'PowerPoint Presentation (Macro Enabled)', 'buddyboss' ), 'is_default' => 1, 'is_active' => 1, 'icon' => '', ), 'bb_doc_45' => array( 'extension' => '.pptm', 'mime_type' => 'application/octet-stream', 'description' => __( 'PowerPoint Presentation (Macro Enabled)', 'buddyboss' ), 'is_default' => 1, 'is_active' => 1, 'icon' => '', ), 'bb_doc_46' => array( 'extension' => '.pptm', 'mime_type' => 'application/vnd.openxmlformats-officedocument.presentationml.presentation', 'description' => __( 'PowerPoint Presentation (Macro Enabled)', 'buddyboss' ), 'is_default' => 1, 'is_active' => 1, 'icon' => '', ), 'bb_doc_47' => array( 'extension' => '.pptx', 'mime_type' => 'application/vnd.openxmlformats-officedocument.presentationml.presentation', 'description' => __( 'PowerPoint Presentation', 'buddyboss' ), 'is_default' => 1, 'is_active' => 1, 'icon' => '', ), 'bb_doc_48' => array( 'extension' => '.psd', 'mime_type' => 'image/vnd.adobe.photoshop', 'description' => __( 'Photoshop Document', 'buddyboss' ), 'is_default' => 1, 'is_active' => 1, 'icon' => '', ), 'bb_doc_49' => array( 'extension' => '.rar', 'mime_type' => 'application/x-rar-compressed', 'description' => __( 'RAR Archive', 'buddyboss' ), 'is_default' => 1, 'is_active' => 1, 'icon' => '', ), 'bb_doc_50' => array( 'extension' => '.rar', 'mime_type' => 'application/x-rar', 'description' => __( 'RAR Archive', 'buddyboss' ), 'is_default' => 1, 'is_active' => 1, 'icon' => '', ), 'bb_doc_51' => array( 'extension' => '.rss', 'mime_type' => 'application/rss+xml', 'description' => __( 'RSS', 'buddyboss' ), 'is_default' => 1, 'is_active' => 1, 'icon' => '', ), 'bb_doc_52' => array( 'extension' => '.rtf', 'mime_type' => 'application/rtf', 'description' => __( 'Rich Text Format', 'buddyboss' ), 'is_default' => 1, 'is_active' => 1, 'icon' => '', ), 'bb_doc_53' => array( 'extension' => '.sketch', 'mime_type' => 'application/x-sqlite3', 'description' => __( 'Sketch Document', 'buddyboss' ), 'is_default' => 1, 'is_active' => 1, 'icon' => '', ), 'bb_doc_54' => array( 'extension' => '.svg', 'mime_type' => 'image/svg+xml', 'description' => __( 'SVG', 'buddyboss' ), 'is_default' => 1, 'is_active' => 1, 'icon' => '', ), 'bb_doc_55' => array( 'extension' => '.tar', 'mime_type' => 'application/x-tar', 'description' => __( 'TAR Archive', 'buddyboss' ), 'is_default' => 1, 'is_active' => 1, 'icon' => '', ), 'bb_doc_56' => array( 'extension' => '.tiff', 'mime_type' => 'image/tiff', 'description' => __( 'Tagged Image File', 'buddyboss' ), 'is_default' => 1, 'is_active' => 1, 'icon' => '', ), 'bb_doc_57' => array( 'extension' => '.txt', 'mime_type' => 'text/plain', 'description' => __( 'Text File', 'buddyboss' ), 'is_default' => 1, 'is_active' => 1, 'icon' => '', ), 'bb_doc_58' => array( 'extension' => '.vcf', 'mime_type' => 'text/x-vcard', 'description' => __( 'vCard', 'buddyboss' ), 'is_default' => 1, 'is_active' => 1, 'icon' => '', ), 'bb_doc_59' => array( 'extension' => '.vcf', 'mime_type' => 'text/vcard', 'description' => __( 'vCard', 'buddyboss' ), 'is_default' => 1, 'is_active' => 1, 'icon' => '', ), 'bb_doc_60' => array( 'extension' => '.wav', 'mime_type' => 'audio/x-wav', 'description' => __( 'Waveform Audio', 'buddyboss' ), 'is_default' => 1, 'is_active' => 1, 'icon' => '', ), 'bb_doc_61' => array( 'extension' => '.xlam', 'mime_type' => 'application/vnd.ms-excel.sheet.binary.macroenabled.12', 'description' => __( 'Excel Spreadsheet (Binary, Macro Enabled)', 'buddyboss' ), 'is_default' => 1, 'is_active' => 1, 'icon' => '', ), 'bb_doc_62' => array( 'extension' => '.xls', 'mime_type' => 'application/vnd.ms-excel', 'description' => __( 'Excel Spreadsheet', 'buddyboss' ), 'is_default' => 1, 'is_active' => 1, 'icon' => '', ), 'bb_doc_63' => array( 'extension' => '.xlsb', 'mime_type' => 'application/vnd.ms-excel.sheet.binary.macroenabled.12', 'description' => __( 'Excel Spreadsheet (Binary, Macro Enabled)', 'buddyboss' ), 'is_default' => 1, 'is_active' => 1, 'icon' => '', ), 'bb_doc_64' => array( 'extension' => '.xlsb', 'mime_type' => 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet', 'description' => __( 'Excel Spreadsheet (Binary, Macro Enabled)', 'buddyboss' ), 'is_default' => 1, 'is_active' => 1, 'icon' => '', ), 'bb_doc_65' => array( 'extension' => '.xlsb', 'mime_type' => 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet', 'description' => __( 'Excel Spreadsheet (Binary, Macro Enabled)', 'buddyboss' ), 'is_default' => 1, 'is_active' => 1, 'icon' => '', ), 'bb_doc_66' => array( 'extension' => '.xlsm', 'mime_type' => 'application/vnd.ms-excel.sheet.macroenabled.12', 'description' => __( 'Excel Spreadsheet (Macro Enabled)', 'buddyboss' ), 'is_default' => 1, 'is_active' => 1, 'icon' => '', ), 'bb_doc_67' => array( 'extension' => '.xlsm', 'mime_type' => 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet', 'description' => __( 'Excel Spreadsheet (Macro Enabled)', 'buddyboss' ), 'is_default' => 1, 'is_active' => 1, 'icon' => '', ), 'bb_doc_68' => array( 'extension' => '.xlsx', 'mime_type' => 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet', 'description' => __( 'Excel Spreadsheet', 'buddyboss' ), 'is_default' => 1, 'is_active' => 1, 'icon' => '', ), 'bb_doc_69' => array( 'extension' => '.xltm', 'mime_type' => 'application/vnd.ms-excel.template.macroenabled.12', 'description' => __( 'Excel Template (Macro Enabled)', 'buddyboss' ), 'is_default' => 1, 'is_active' => 1, 'icon' => '', ), 'bb_doc_70' => array( 'extension' => '.xltx', 'mime_type' => 'application/vnd.openxmlformats-officedocument.spreadsheetml.template', 'description' => __( 'Excel Template', 'buddyboss' ), 'is_default' => 1, 'is_active' => 1, 'icon' => '', ), 'bb_doc_71' => array( 'extension' => '.xltx', 'mime_type' => 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet', 'description' => __( 'Excel Template', 'buddyboss' ), 'is_default' => 1, 'is_active' => 1, 'icon' => '', ), 'bb_doc_72' => array( 'extension' => '.xml', 'mime_type' => 'application/rss+xml', 'description' => __( 'XML', 'buddyboss' ), 'is_default' => 1, 'is_active' => 1, 'icon' => '', ), 'bb_doc_73' => array( 'extension' => '.xml', 'mime_type' => 'text/xml', 'description' => __( 'XML', 'buddyboss' ), 'is_default' => 1, 'is_active' => 1, 'icon' => '', ), 'bb_doc_74' => array( 'extension' => '.yaml', 'mime_type' => 'text/yaml', 'description' => __( 'YAML', 'buddyboss' ), 'is_default' => 1, 'is_active' => 1, 'icon' => '', ), 'bb_doc_75' => array( 'extension' => '.zip', 'mime_type' => 'application/zip', 'description' => __( 'Zip', 'buddyboss' ), 'is_default' => 1, 'is_active' => 1, 'icon' => '', ), 'bb_doc_76' => array( 'extension' => '.7z', 'mime_type' => 'application/x-7z-compressed', 'description' => __( '7z Archive', 'buddyboss' ), 'is_default' => 1, 'is_active' => 1, 'icon' => '', ), ); $extension_lists = apply_filters( 'bp_media_allowed_document_type', $extension_lists ); return $extension_lists; }

问题?

我们总是很高兴帮助您处理代码或其他问题!搜索我们的开发人员文档联系支持,或与我们联系销售团队