Add a filter for $overrides in wp_handle_upload()
|Reported by:||iandunn||Owned by:|
I'm writing a plugin that needs to set a $unique_filename_callback in wp_handle_upload() during a normal post attachment upload (not a custom upload form), but there's no way to do it without a filter like this one:
$overrides = apply_filters( 'wp_handle_upload_overrides', $overrides );
For now I just modded my /wp-admin/includes/file.php to add it, but obviously that's not an ideal solution, especially since I plan on adding the plugin to the repository for others to use.
Change History (20)
- Keywords commit added; needs-testing dev-feedback removed
- Milestone changed from Awaiting Review to 3.5