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.


Top ↑

Source

File: wp-admin/includes/file.php

View on Trac



Top ↑

Changelog

Changelog
VersionDescription
3.0.0Introduced.

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by theĀ Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.