arc-hive-wordpress-plugin/includes/arcHIVE-enable-svg.php

28 lines
623 B
PHP
Raw Normal View History

2022-03-30 13:11:52 +02:00
<?php
/**
* Add mimetypes support: svg
*
* @link https://arc-hive.zone
* @since 1.1.0
*
* @package archive_wpplugin
* @subpackage archive_wpplugin/includes
*/
/**
* Add mimetypes support: svg
*
* This class defines all code necessary to run during the plugin's activation.
*
* @since 1.1.0
* @package archive_wpplugin
* @subpackage archive_wpplugin/includes
* @author Jorge - vitrubio.net <jorge@vitrubio.net>
*/
function arcHIVE_enable_mime_types( $mimes ) {
$mimes['svg'] = 'image/svg+xml';
return $mimes;
}
add_filter('upload_mimes', 'arcHIVE_enable_mime_types');