3599*3600* @since 6.0.03601*3602* @param null|int$size The unfiltered value. Returning an int from the callback bypasses the filesize call.3603* @param string$path Path to the file.3604*/3605$size=apply_filters('pre_wp_filesize',null,$path);36063607if(is_int($size)){3608return$size;3609}36103611$size=file_exists($path)?(int)filesize($path):0;
History
Introduced in 6.0.0. Unchanged from 6.7.7 through 7.1.0.