Uploading ebooks into WooCommerce and WordPress
I've helped set up a number of WordPress-based commerce sites for authors. One of the first things that always gets in the way is the inability to upload MOBI or EPUB file into WooCommerce to actually set the books.
To get around this is a pretty simple process.
- In `wp-content/plugins`, create a directory like `local-upload-ebooks`.
- Create `local-upload-ebooks/local-upload-eboooks.php` and edit it.
- Put the text below into it and save it.
- Go into your Plugin Manager and enable the plugin.
'application/epub+zip',
'mobi' => 'application/x-mobipocket-ebook'
));
return $mimes;
}
?>
I hope it helps anyone who gets stuck by this. I'm sure there is already a plugin in WordPress's catalog, I just couldn't find it.
Metadata
Categories:
Tags:
Footer
Below are various useful links within this site and to related sites (not all have been converted over to Gemini).