Is the WordPress filename generation algorithm available anywhere?

Noob here, bear with me.
I’m working on a project where we upload thousands of images to WordPress, and figured I could save some time if I could generate my own link strings from the file name instead of copying them from the media library. To do this reliably, it would be nice to know how WordPress renames files.

2 Comments
  1. I’m unclear what you’re trying to do here. Are the images already uploaded and you want to output a list of file names? Or do you want to create a script to upload the images and output the list? Or…?

    In any case, all of WP’s functions are available for you to leverage and you can do either of the things I described. If you Google you’ll find code examples and clues to follow.

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer