This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// add to your theme's functions.php file | |
add_filter('upload_mimes', 'add_custom_upload_mimes'); | |
function add_custom_upload_mimes($existing_mimes) { | |
$existing_mimes['otf'] = 'application/x-font-otf'; | |
$existing_mimes['woff'] = 'application/x-font-woff'; | |
$existing_mimes['ttf'] = 'application/x-font-ttf'; | |
$existing_mimes['svg'] = 'image/svg+xml'; | |
$existing_mimes['eot'] = 'application/vnd.ms-fontobject'; | |
return $existing_mimes; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
# License: Public Domain | |
# I recommend replacing 'my_' with your own prefix. | |
function my_template_path() { | |
return My_Wrapping::$main_template; | |
} |