On this page
apply_filters( 'unzip_file_use_ziparchive', bool $ziparchive )
Filters whether to use ZipArchive to unzip archives.
Parameters
$ziparchivebool-
Whether to use ZipArchive. Default true.
Source
File: wp-admin/includes/file.php. View all references
if ( class_exists( 'ZipArchive', false ) && apply_filters( 'unzip_file_use_ziparchive', true ) ) {
Related
Used By
| Used By | Description |
|---|---|
| unzip_file() wp-admin/includes/file.php | Unzips a specified ZIP file to a location on the filesystem via the WordPress Filesystem Abstraction. |
Changelog
| Version | Description |
|---|---|
| 3.0.0 | Introduced. |
© 2003–2022 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/unzip_file_use_ziparchive