new 'upload_overrides' filter proposal
|Reported by:||pixline||Owned by:|
|Component:||Administration||Keywords:||has-patch dev-feedback new-hook|
A new filter hook for the $overrides array into wp_upload_tab_upload_action function, which lets to add optional overrides before calling wp_handle_upload. This makes possible to alter actual WP logic for renaming files after upload, i.e. adding a function that will sanitize or mangle in some ways the file name (add timestamp, change some characters, and so on).
Change History (11)
- Keywords has-patch added; add filter upload overrides filename removed