apply_filters( ‘wp_filesize’, int $size, string $path )

In this article

Filters the size of the file.

Parameters

$sizeint
The result of PHP filesize on the file.
$pathstring
Path to the file.

Source

return (int) apply_filters( 'wp_filesize', $size, $path );

Changelog

VersionDescription
6.0.0Introduced.

User Contributed Notes

You must log in before being able to contribute a note or feedback.