Skip to content

Instantly share code, notes, and snippets.

@maltehelmhold
Created May 20, 2018 18:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save maltehelmhold/506254f2c2d092d27bd06fb554a71974 to your computer and use it in GitHub Desktop.
Save maltehelmhold/506254f2c2d092d27bd06fb554a71974 to your computer and use it in GitHub Desktop.
so kannst du mehr als nur langweilige jpg Files hochladen! Viel Erfolg, dein Malte
/**
* so kannst du mehr als nur langweilige jpg Files hochladen! Viel Erfolg, dein Malte
*
* @param array $types Default allowed mime types
*/
function deinewebsite_custom_mime_types( $types ) {
// Add relevant extensions and types to the default array
$types['woff2'] = 'application/woff2';
return $types;
}
add_filter( 'mime_types', 'websitepiloten_custom_mime_types' );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment