Description
Filters the data array for the uploaded file. }
Occurrences
Filename | Line Number |
---|---|
wp-admin/includes/file.php | 1066 |
wp-includes/functions.php | 2972 |
Parameters
Type | Name | Description |
---|---|---|
array | $upload | { Array of upload data. |
string | $context | The type of upload action. Values include 'upload' or 'sideload'. |
PHP Doc
/**
* Filters the data array for the uploaded file.
*
* @since 2.1.0
*
* @param array $upload {
* Array of upload data.
*
* @type string $file Filename of the newly-uploaded file.
* @type string $url URL of the newly-uploaded file.
* @type string $type Mime type of the newly-uploaded file.
* }
* @param string $context The type of upload action. Values include 'upload' or 'sideload'.
*/