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

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


Parameters

$size

The unfiltered value. Returning an int from the callback bypasses the filesize call.

$path

Path to the file.


Source

File: wp-includes/functions.php

View on GitHub


Changelog

Changelog
Version Description
6.0.0 Introduced.