Skip to content

Instantly share code, notes, and snippets.

@robwent
Created May 10, 2021 11:15
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save robwent/71706cf29e302489a7ccb16b98f7ad99 to your computer and use it in GitHub Desktop.
<?php
/*
Plugin Name: Custom Hooks
Plugin URI: https://www.robertwent.com/
Description: A container for custom hooks
Version: 1.0
Author: Robert Went
*/
function so_387865_custom_upload_mimes ( $existing_mimes ) {
$existing_mimes['epub'] = 'application/epub+zip';
$existing_mimes['mobi'] = 'application/x-mobipocket-ebook';
return $existing_mimes;
}
add_filter('upload_mimes', 'so_387865_custom_upload_mimes');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment