1function my_custom_mime_types( $mimes ) {
2
3// New allowed mime types.
4$mimes['svg'] = 'image/svg+xml';
5$mimes['svgz'] = 'image/svg+xml';
6$mimes['doc'] = 'application/msword';
7
8// Optional. Remove a mime type.
9unset( $mimes['exe'] );
10
11return $mimes;
12
13}
14add_filter( 'upload_mimes', 'my_custom_mime_types' );
15
1// Allow Unfiltered Uploads in Your wp-config.php File
2
3define('ALLOW_UNFILTERED_UPLOADS', true);
4
5// wp-config.php
6// You can add the following code to the file,
7// anywhere above the line reading near line no. 75 to 90,
8/* That’s all, stop editing. Happy blogging. */
9// if you want to more learn you wisit our website http://roginetwork.com/
10// Rogi Network
11// +923022020318
12// roginetwork6@gmail.com
13