/* Autoriser l'upload de tous types de format dans les médias */

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

function jag_myme_types($mime_types){
    $mime_types['docx'] = 'application/postscript'; //On autorise les .docx
    $mime_types['mon autre extension'] = 'mon autre Mime Type'; 
    return $mime_types;
}
Copyright © 2017-2023 JAG CONSULTING SAS
arrow-right linkedin facebook pinterest youtube rss twitter instagram facebook-blank rss-blank linkedin-blank pinterest youtube twitter instagram