Filter for File Name?
-
Does StockPack have a filter/hook to customize the file name? I looked at the documentation and didn’t see one.
We’re finding that a lot of the time the default file name is super long and we’d like to automate truncating it ourselves in PHP (vs. having our content editors have to do it manually).
Our thought would be to truncate the file name part to no more than 100 characters and then add “-stockpack-“, the provider name, and the media file id for uniqueness (stockpack_media_id). Basically, something like “a-picture-of-a-cat-stockpack-adobe-stock-1930493”.
So, some kind of filter/hook that provides the generated name, the stock photo provider, and the stockpack_media_id as parameters somehow would be super helpful!
- You must be logged in to reply to this topic.