Home / Admin / Allow ico Files Upload
Duplicate Snippet

Embed Snippet on Your Site

Allow ico Files Upload

Add support for ico files to be uploaded in WordPress media.

Code Preview
php
<?php
/*---------------------------------------------
	TYPE MIME ICO par HP MC&C
----------------------------------------------*/
function allow_ico_mime_types( $mimes ){
   $mimes['ico'] = 'image/x-icon';
   return $mimes;
}
add_filter( 'upload_mimes', 'allow_ico_mime_types' );

Comments

Add a Comment