Allow a custom fonts directory via a filter on the directory in use.
pattonwebz opened this issue · comments
webfont-loader/wptt-webfont-loader.php
Lines 91 to 93 in 4496f03
The linked code as well as a number of other places in the script assume a specific directory for the fonts to exist. I would like this directory to be a filtered location because in some hosting plans the filesystem is locked down. In one of my test sites creation of files/folders directly inside the wp-content directory is forbidden so I only have 2 options:
- Create the
/wp-content/fonts
directory manually - in advance of it being used. - Use a different directory to store the files.
Done in #6