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



upload_dir › WordPress过滤钩子

Since2.0.0
已弃用n/a
› apply_filters( 'upload_dir', $cache[ $key ] )
参数:
  • () uploads { Array of information about the upload directory. @type string $path Base directory and subdirectory or full path to upload directory. @type string $url Base URL and subdirectory or absolute URL to upload directory. @type string $subdir Subdirectory if uploads use year/month folders option is on. @type string $basedir Path without subdir. @type string $baseurl URL path without subdir. @type string|false $error False or error message. }
    Required: Yes
定义在:
文档:

Filters the uploads directory data.





源码

$uploads = apply_filters( 'upload_dir', $cache[ $key ] );