unzip_file_use_ziparchive WordPress Filter Hook
The unzip_file_use_ziparchive hook allows you to specify whether or not to use the ZipArchive class when unzipping a file. This can be useful if you need to unzip a file on a system that does not have the ZipArchive class installed.
apply_filters( 'unzip_file_use_ziparchive', bool $ziparchive ) #
Filters whether to use ZipArchive to unzip archives.
Parameters
- $ziparchive
(bool)Whether to use ZipArchive. Default true.
Source
Changelog
Version | Description |
---|---|
3.0.0 | Introduced. |