diff --git a/functions.php b/functions.php index 5fa0c5a..14252b3 100644 --- a/functions.php +++ b/functions.php @@ -827,3 +827,9 @@ function handle_pdf_download() } } add_action('template_redirect', 'handle_pdf_download'); + +function allow_more_uploads($mime_types) { + $mime_types['py'] = 'text/x-python'; + return $mime_types; +} +add_filter('upload_mimes', 'allow_more_uploads'); \ No newline at end of file