Filter hook 'pre_wp_filesize'

in WP Core File wp-includes/functions.php at line 3568

Description

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

Occurrences

Filename Line Number
wp-includes/functions.php 3568

Parameters

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

PHP Doc

/**
	 * Filters the result of wp_filesize before the PHP function is run.
	 *
	 * @since 6.0.0
	 *
	 * @param null|int $size The unfiltered value. Returning an int from the callback bypasses the filesize call.
	 * @param string   $path Path to the file.
	 */