How can I allow upload of ttf or otf font files when hooking `upload_mimes` doesn't work
I tried hooking the upload_mimes
hook in order to add support for ttf files to be uploaded, however this didn't immediately work (.ttf files were still blocked).
The reason isn't entirely clear to me but I assume Wordpress's calculated MIME type for the file I'm trying to upload and the MIME type I'm adding to the upload_files
hook don't match.