wp_zip_file_is_valid
wp_zip_file_is_valid ( $file )
Parameters:- (string) file Full path to the ZIP file.
Returns:- (bool) Whether the file is a valid ZIP file.
Defined at: - Introduced in WordPress: 6.4.4
- Deprecated in WordPress: —
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.