Filters the result of wp_filesize before the PHP function is run.
null, $path
Sortie :
@param null|int $size The unfiltered value. Returning an int from the callback bypasses the filesize call. @param string $path Path to the file.
// Modifier la valeur avec le filtre 'pre_wp_filesize'
add_filter('pre_wp_filesize', 'ma_fonction_filtre', 10, 1);
function ma_fonction_filtre(null) {
// Modifier la valeur
return null;
}
Chargement des actualités...