Filters the data 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_prefilterwp_handle_upload_prefilter$filearray
$_FILES.name stringtype stringtmp_name stringsize interror int$file = apply_filters( "{$action}_prefilter", $file );
© 2003–2024 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/action_prefilter