pre_unzip_file

FILTER wp-admin\includes\file.php (ligne 1792) github
Filters archive unzipping to override with a custom process.

Paramètres

Entrée :
null, $file, $to, $needed_dirs, $required_space
Sortie :
@param null|true|WP_Error $result         The result of the override. True on success, otherwise WP Error. Default null.
@param string             $file           Full path and filename of ZIP archive.
@param string             $to             Full path on the filesystem to extract archive to.
@param string[]           $needed_dirs    A full list of required folders that need to be created.
@param float              $required_space The space required to unzip the file and copy its contents, with a 10% buffer.

Utilisation

// Modifier la valeur avec le filtre 'pre_unzip_file'
add_filter('pre_unzip_file', 'ma_fonction_filtre', 10, 1);

function ma_fonction_filtre(null) {
    // Modifier la valeur
    return null;
}

Actualités

Chargement des actualités...