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:

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.

Related Functions

file_is_valid_image, wp_is_file_mod_allowed, _unzip_file_pclzip, _unzip_file_ziparchive, wp_opcache_invalidate

Top Google Results

User discussions

wpseek mobile