I’m trying to figure out a way change the default naming system of images in WordPress. I’m wondering if there is a way to change image URLs when they’re uploading so they’re randomly generated instead of using the file’s actual name, so picture123.jpg would turn into a random five letter/numerical string like 12abc.jpg. I know nothing about coding or WordPress’ inner workings, so I don’t even know if this is possible. If it is possible to change in a php file somewhere, I was thinking the base_convert function would work nicely.
The reason I want to do this is because the actual image’s name can sometimes be long and ugly so this would shorten the URL and make it cleaner for posting on other websites.
- The topic ‘Randomly Generate Short URL for Images Instead of Using the File Name’ is closed to new replies.