Enable uploading .csv file type on your WordPress Website Post author:Best-IT Scholars Post published:August 13, 2022 Post category:Slice of Code / WordPress Post comments:0 Comments Step 1: Copy the code below & paste it to your 'wp-config.php' file your WordPress website directory define('ALLOW_UNFILTERED_UPLOADS', true); Step 2: Copy the code below & paste it to your theme's 'functions.php' file function my_custom_mime_types( $mimes ) { $mimes['csv'] = 'text/csv'; unset( $mimes['exe'] ); return $mimes; } add_filter( 'upload_mimes', 'my_custom_mime_types' ); Opens in a new window Twitter Opens in a new window Facebook Opens in a new window Google+ Opens in a new window Pinterest Opens in a new window LinkedIn You Might Also Like Remove Zero Decimals from product price in WooCommerce January 14, 2023 Best Hosting for your WordPress Website January 19, 2021 Leave a Reply Cancel replyYou must be logged in to post a comment.Login with your Social ID