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



pre_wp_filesize › WordPress过滤钩子

Since7.1.0
已弃用n/a
› apply_filters( 'pre_wp_filesize', null, $path )
参数: (2)
  • () size The unfiltered value. Returning a non-negative number from the callback bypasses the filesize call.
    Required: Yes
  • () path Path to the file.
    Required: Yes
定义在:
文档:

Filters the result of wp_filesize() before the file_exists() PHP function is run.





源码

$size = apply_filters( 'pre_wp_filesize', null, $path );