Filter upload directory for plugin files

Like many other plugins, Complianz stores several files (e.g. CSS files and Maxmind Database) in the publicly available /uploads/ folder. However, some Complianz users with a customised WordPress configuration might want to change the location of these files. For these situations we have implemented two filters:

cmplz_upload_url and cmplz_upload_dir

In a standard WordPress setup, this will return a default string:

{path or URL}/wp-content/uploads/complianz/ 

Please find below an example snippet to change the upload directory to “/new-folder/”.

Join 600.000 users and install The Privacy Suite for WordPress locally, automated or fully customized, and access our awesome support if you need any help!