wearerequired / traduttore

🗼 A WordPress plugin to improve the I18N workflow for your own projects based on @GlotPress.
https://wearerequired.github.io/traduttore/
72 stars 15 forks source link

Allow to filter/set a custom path/URL for language packs #121

Closed ocean90 closed 5 years ago

ocean90 commented 5 years ago

ZipProvider::get_zip_url(), ZipProvider::get_zip_path(), and ZipProvider::get_cache_dir() are using WP_CONTENT_DIR / WP_CONTENT_URL and the directory traduttore by default. There's currently no easy way to change that for example if you want to store the files on another mounting point of your disk and/or want to use a custom domain for the downloads.

swissspidy commented 5 years ago

Sounds like adding two filters would suffice, e.g. traduttore.content_dir and traduttore.content_url.