Home / Admin / Allow Webp, SVG, ICO
Duplicate Snippet

Embed Snippet on Your Site

Allow Webp, SVG, ICO

A Pro Snippet

Code Preview
php
<?php
function allow_additional_mime_types($mime_types) {
    $mime_types['svg'] = 'image/svg+xml';
    $mime_types['webp'] = 'image/webp';
    $mime_types['ico'] = 'image/vnd.microsoft.icon';
    return $mime_types;
}
add_filter('upload_mimes', 'allow_additional_mime_types');

Comments

Add a Comment