On this page
apply_filters( 'wp_filesize', int $size, string $path )
Filters the size of the file.
Parameters
$sizeint-
The result of PHP filesize on the file.
$pathstring-
Path to the file.
Source
File: wp-includes/functions.php. View all references
return (int) apply_filters( 'wp_filesize', $size, $path );
Related
Used By
| Used By | Description |
|---|---|
| wp_filesize() wp-includes/functions.php | Wrapper for PHP filesize with filters and casting the result as an integer. |
Changelog
| Version | Description |
|---|---|
| 6.0.0 | Introduced. |
© 2003–2022 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/wp_filesize