apply_filters( 'pre_wp_filesize', null|int $size, string $path )

Filters the result of wp_filesize before the PHP function is run.


Parameters

$size null|int
The unfiltered value. Returning an int from the callback bypasses the filesize call.
$path string
Path to the file.

Top ↑

Source

File: wp-includes/functions.php. View all references

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


Top ↑

Changelog

Changelog
Version Description
6.0.0 Introduced.

Top ↑

User Contributed Notes

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