Filters the result of wp_filesize before the PHP function is run.
$sizenull|int
$pathstring
$size = apply_filters( 'pre_wp_filesize', null, $path );
| Version | Description |
|---|---|
| 6.0.0 | Introduced. |
© 2003–2024 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/pre_wp_filesize