Core Function
View Source on Trac ↗ wp_zip_file_is_valid()
wp_zip_file_is_valid( mixed $file ) Determines whether the given file is a valid ZIP file.
Parameters 1 required
| Name / Type | Description |
|---|---|
| $file string | Full path to the ZIP file. Required |
Return Value
(bool)
Whether the file is a valid ZIP file.
Function Information
Since Version
6.4.4
Source File
wp-admin/includes/file.php
Advertisement