WordPress at Your Fingertips
filter is not described

(action)_overrides filter-hook . WP 5.7.0

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 filter names include:

  • wp_handle_sideload_overrides
  • wp_handle_upload_overrides

Usage

add_filter( '(action)_overrides', 'filter_function_name_8220', 10, 2 );
function filter_function_name_8220( $overrides, $file ){
	// filter...

	return $overrides;
}
$overrides(array|false)
An array of override parameters for this file. Boolean false if none are provided. @see _wp_handle_upload().
$file(string[])
An array of data for the file. Reference to a single element of $_FILES.

Changelog

Since 5.7.0 Introduced.

Where the hook is called

_wp_handle_upload()
(action)_overrides
wp-admin/includes/file.php 787
$overrides = apply_filters( "{$action}_overrides", $overrides, $file );

Where in WP core the hook is used WordPress

Usage not found.