3614*3615* @since 6.0.03616*3617* @param null|int$size The unfiltered value. Returning an int from the callback bypasses the filesize call.3618* @param string$path Path to the file.3619*/3620$size=apply_filters('pre_wp_filesize',null,$path);36213622if(is_int($size)){3623return$size;3624}36253626$size=file_exists($path)?(int)filesize($path):0;
History
Introduced in 6.0.0. Unchanged from 6.7.7 through 7.1.0.