Function Arguments Return Description Version Path

_unzip_file_pclzip

(string) $file
(string) $to
(array) $needed_dirs = array()
(mixed) WP_Error on failure, True on success

This function should not be called directly, use unzip_file instead. Attempts to unzip an archive using the PclZip library. Assumes that WP_Filesystem() has already been called and set up.

3.0 wp-admin / includes / file.php

_unzip_file_ziparchive

(string) $file
(string) $to
(array) $needed_dirs = array()
(mixed) WP_Error on failure, True on success

This function should not be called directly, use unzip_file instead. Attempts to unzip an archive using the ZipArchive class. Assumes that WP_Filesystem() has already been called and set up.

3.0 wp-admin / includes / file.php

unzip_file

(string) $file
(string) $to
(mixed) WP_Error on failure, True on success

Unzips a specified ZIP file to a location on the Filesystem via the WordPress Filesystem Abstraction. Assumes that WP_Filesystem() has already been called and set up. Does not extract a root-level __MACOSX directory, if present.

2.5 wp-admin / includes / file.php