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



pre_wp_unique_filename_file_list › WordPress过滤钩子

Since5.5.0
已弃用n/a
› apply_filters( 'pre_wp_unique_filename_file_list', null, $dir, $filename )
参数: (3)
  • () files The list of files to use for filename comparisons. Default null (to retrieve the list from the filesystem).
    Required: Yes
  • () dir The directory for the new file.
    Required: Yes
  • () filename The proposed filename for the new file.
    Required: Yes
定义在:
文档:

Filters the file list used for calculating a unique filename for a newly added file.

Returning an array from the filter will effectively short-circuit retrieval from the filesystem and return the passed value instead.




源码

$files = apply_filters( 'pre_wp_unique_filename_file_list', null, $dir, $filename );