WordPress Upload Pdf, doc, ppt file types |
X

Congrats, You are Subscribed to Receive Updates.

WordPress Upload Pdf, doc, ppt file types


WordPress Upload Pdf, doc, ppt file types. Here is a function which will help you to solve the error while uploading other files types on your wordpress. Here is the code. Add the below function on your theme’s functions.php.

function kv_extra_mine_types($mime_types){
    $mime_types['docx'] = 'application/vnd.openxmlformats-officedocument.wordprocessingml.document'; 
    $mime_types['doc'] = 'application/msword'; 
    $mime_types['pdf'] = 'application/pdf'; 
    return $mime_types;
}

add_filter('upload_mimes', 'kv_extra_mine_types', 1, 1);

 

commenter

About Varadharaj V

The founder of Kvcodes, Varadharaj V is an ERP Analyst and a Web developer specializing in WordPress(WP), WP Theme development, WP Plugin development, Frontaccounting(FA), Sales, Purchases, Inventory, Ledgers, Payroll & HRM, CRM, FA Core Customization, PHP and Data Analyst. Database Management Advance Level

Comment Below

Your email address will not be published. Required fields are marked *

*

Current ye@r *

Menu

Sidebar