apply_filters( "{$action}_overrides", array|false $overrides, string[] $file )

Filters the override parameters for a file before it is uploaded to WordPress.


Description Description

The dynamic portion of the hook name, $action, refers to the post action.

Possible hook names include:

  • wp_handle_sideload_overrides
  • wp_handle_upload_overrides

Top ↑

Parameters Parameters

$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.


Top ↑

Source Source

File: wp-admin/includes/file.php

View on Trac



Top ↑

Changelog Changelog

Changelog
Version Description
5.7.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.