Ebooks now fully integrated

Just a quick note to say that ebooks are now fully integrated into the HammerOn webshop.

Previously we had been using a plug in to sell ebooks which made the functionality a bit clunky.

The problem with selling ebooks – specifically EPUB files used on most mobile digital devices – is wordpress media library does not support these files or ‘MIMES’ (Multipurpose Internet Mail Extensions).

After some tweaking we found the best solution was to add an extra bit of code to the ‘custom_functions.php’ as recommended by this site.

function addUploadMimes($mimes) {
$mimes = array_merge($mimes, array(
‘epub|mobi’ => ‘application/octet-stream’
return $mimes;
add_filter(‘upload_mimes’, ‘addUploadMimes’);


Our media library can now store EPUB and Mobi files and you can download them.