wpseek.com
A WordPress-centric search engine for devs and theme authors



pre_wp_filesize › WordPress Filter Hooks

Since6.0.0
Deprecatedn/a
apply_filters( 'pre_wp_filesize', null, $path )
Parameters: (2)
  • () size The unfiltered value. Returning an int from the callback bypasses the filesize call.
    Required: Yes
  • () path Path to the file.
    Required: Yes
Defined at:
Codex:

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





Source

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