3606*3607* @since 6.0.03608*3609* @param null|int$size The unfiltered value. Returning an int from the callback bypasses the filesize call.3610* @param string$path Path to the file.3611*/3612$size=apply_filters('pre_wp_filesize',null,$path);36133614if(is_int($size)){3615return$size;3616}36173618$size=file_exists($path)?(int)filesize($path):0;
History
Introduced in 6.0.0. Unchanged from 6.7.7 through 7.1.0.