pre_wp_filesize

FILTER wp-includes\functions.php (ligne 3620) github
Filters the result of wp_filesize before the PHP function is run.

Paramètres

Entrée :
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.

Utilisation

// 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;
}

Actualités

Chargement des actualités...