{ 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.}
$filestring
Filename of the newly-uploaded file.
$urlstring
URL of the newly-uploaded file.
$typestring
Mime type of the newly-uploaded file.
$contextstring
The type of upload action. Values include 'upload' or 'sideload'.
1062* @type string$file Filename of the newly-uploaded file.1063* @type string$urlURL of the newly-uploaded file.1064* @type string$type Mime type of the newly-uploaded file.1065*}1066* @param string$context The type of upload action. Values include'upload'or'sideload'.1067*/1068returnapply_filters(1069'wp_handle_upload',1070array(1071'file'=>$new_file,1072'url'=>$url,1073'type'=>$type,1074),
History
Introduced in 2.1.0. Unchanged from 6.7.7 through 7.1.0.