I wrote a function in my
functions.php which automatically renames images in the uploads folder of WordPress with
I tried different solutions but I always get the error
No such file or directory in functions.php
. Paths which I tried, but no success:
Someone has an idea which could be the right path to rename an image which is in the upload folder? Thank you for your help
A simple mistake: I have a htaccess with a htpasswd. If I remove the password, file will be found.