Opened 8 months ago
Last modified 8 months ago
#21959 new enhancement
No way to override the name of an image when that is being resized
| Reported by: |
|
Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | Awaiting Review |
| Component: | Media | Version: | 3.4.2 |
| Severity: | normal | Keywords: | has-patch needs-codex needs-docs |
| Cc: | jeremy.massel@… |
Description
The most obvious solution is to add a hook to allow the destination file name to be modified.
The solution attached gives pretty much all the information you could possibly want to modify the filename as you might need to.
Attachments (2)
Change History (5)
SergeyBiryukov — 8 months ago
comment:2
follow-up:
↓ 3
SergeyBiryukov — 8 months ago
$destfilename needs to be a string, not an array. Additional information can be passed as extra arguments.
Replying to SergeyBiryukov:
$destfilename needs to be a string, not an array. Additional information can be passed as extra arguments.
Ah interesting. Thanks for the info!
Note: See
TracTickets for help on using
tickets.

A fix for this issue