A WordPress-centric search engine for devs and theme authors



wp_handle_upload ›

Since2.1.0
Deprecatedn/a
Parameters: (2)
  • (array) $upload { Array of upload data. @type string $file Filename of the newly-uploaded file. @type string $url URL of the uploaded file. @type string $type File type. }
    Required: No
    Default:
  • (string) $context The type of upload action. Values include 'upload' or 'sideload'.
    Required: No
    Default: $action ? 'sideload' : 'upload'
Defined at:
Codex:

Filters the data array for the uploaded file.





Source

return apply_filters(