Filters archive unzipping to override with a custom process.
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.
// 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;
}
Chargement des actualités...