Filter hook 'unzip_file_use_ziparchive'
in WP Core File wp-admin/includes/file.php at line 1579
Description
Determines whether the given file is a valid ZIP file. This function does not test to ensure that a file exists. Non-existent files are not valid ZIPs, so those will also return false.
Occurrences
Filename |
Line Number |
wp-admin/includes/file.php |
1579 |
wp-admin/includes/file.php |
1656 |
Parameters
Type |
Name |
Description |
string |
$file |
Full path to the ZIP file. |
PHP Doc
/**
* Determines whether the given file is a valid ZIP file.
*
* This function does not test to ensure that a file exists. Non-existent files
* are not valid ZIPs, so those will also return false.
*
* @since 6.4.4
*
* @param string $file Full path to the ZIP file.
* @return bool Whether the file is a valid ZIP file.
*/