Programmatically add template to images


#1

As per the title, is there a way to loop through all the images and add the correct template?


#2

Yes, you can do that via $file->update().