Filters the override parameters for a file before it is uploaded to WordPress.
The dynamic portion of the hook name, $action, refers to the post action.
Possible hook names include:
wp_handle_sideload_overrideswp_handle_upload_overrides$overridesarray|false
$filearray
$_FILES.name stringtype stringtmp_name stringsize interror int$overrides = apply_filters( "{$action}_overrides", $overrides, $file );
| Version | Description |
|---|---|
| 5.7.0 | Introduced. |
© 2003–2024 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/action_overrides