I have additional folder (images/) in wp-content/uploads/ directory to store theme images (I heard it is good practice to place them in upload directory) and I want Media Library to list this files because I might need to reuse them somewhere else. Is there a way to tell Media Library to look for files in whole uploads directory (or manually add directories to look in) maybe using functions.php?
The Media library doesn't directly pull from the
uploads folder. It reads in Attachments, which place their attached media in the
uploads folder. If you want to access them through WordPress, you will need to upload them as Attachments.
You can customize the upload location in the
Just before the line that goes