Filters archive unzipping to override with a custom process.
Parameters
$result
null|true|WP_Error- The result of the override. True on success, otherwise WP Error. Default null.
$file
string- Full path and filename of ZIP archive.
$to
string- Full path on the filesystem to extract archive to.
$needed_dirs
string[]- A full list of required folders that need to be created.
$required_space
float- The space required to unzip the file and copy its contents, with a 10% buffer.
Source
$pre = apply_filters( 'pre_unzip_file', null, $file, $to, $needed_dirs, $required_space );
Changelog
Version | Description |
---|---|
6.4.0 | Introduced. |
User Contributed Notes
You must log in before being able to contribute a note or feedback.