28 lines
623 B
PHP
28 lines
623 B
PHP
|
<?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');
|