wpseek.com
WordPress开发者和主题制作者的搜索引擎



wp_handle_upload › WordPress过滤钩子

Since2.1.0
已弃用n/a
参数: (2)
  • (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. }
    Required: No
    默认:
  • (string) $context The type of upload action. Values include 'upload' or 'sideload'.
    Required: No
    默认: $action ? 'sideload' : 'upload'
定义在:
文档:

Filters the data array for the uploaded file.





源码

return apply_filters(