PDA Gold is now compatible with Polylang

Polylang comes with a built-in function allowing you to duplicate files under the Media Library for multiple languages.

Here’s what Polylang does:

  • The plugin keeps the same file URL (instead of duplicating the file) but changes the file ID across different languages.
  • That means one file URL could be having as many as 3 different IDs stored in the database

While that process might be optimal for them, it’s rather difficult for our plugin to protect these files properly.

Since version 3.3.0, our PDA Gold is compatible with Polylang. The file protection and Access Permission now work consistently across different languages.


PDA Gold & Polylang: Integration Logic

  • You can protect and configure the file protection, i.e. set File Access Permission, under the default language only.
    • When you upload a new file under other languages, you won’t be able to protect them. You have to switch to the main language first.
  • Once a file is (un)protected, all its copies under sub-languages will be (un)protected accordingly.
    • In other words, the protection status and File Access Permission will follow the ones under the default language.

Please note that when WPML is deactivated, all media files under multiple languages will be moved back into one place. As a result, your file uploads will become “duplicated” under the Media Library. Protecting one file will cause “missing file” error for the others because they all share the same file URL as mentioned above.

Handle “missing file” error

If you already translated the media files before updating PDA Gold to the newest version, you might come across the “missing file” error.

Please contact our support team so that we can help you fix the issue.

Lasted updated on June 3, 2021