apply_filters( 'wp_handle_upload', array $upload , string $context )
Filters the data array for the uploaded file.
Description Description
Parameters Parameters
- $upload
-
(array) Array of upload data.
- 'file'
(string) Filename of the newly-uploaded file. - 'url'
(string) URL of the uploaded file. - 'type'
(string) File type.
- 'file'
- $context
-
(string) The type of upload action. Values include 'upload' or 'sideload'.
Source Source
Changelog Changelog
Version | Description |
---|---|
2.1.0 | Introduced. |