Hi @side777
Our dev team tried to reproduce this issue by defining a custom UPLOADS constant in wp-config.php file and it worked just fine, also they tried using custom filter and it worked as well.
Please let us know how exactly you are defining the custom upload location. Feel free to use this form to share any information/steps you like.
Thanks,
Alaa
Thread Starter
s1de7
(@side777)
I add the filter to the upload_dir hook in the functions.php of the theme. This is working for media files and as returned by wp_upload_dir().
I just tested adding the filter as a mu-pluging and now it is working. This means your plugin is calling wp_upload_dir() before the theme is loaded.
-
This reply was modified 1 year, 10 months ago by
s1de7.
Good catch @side777
WP Staging runs on the plugins_loaded hook which is before loading the functions.php.
We will keep that in mind mentioning to other users with a similiar need. Thanks for the heads up.
All the best
René