WordPress как на ладони
Недорогой хостинг для сайтов на WordPress: wordpress.jino.ru
функция не описана

PclZip::privCheckFormat() public WP 1.0

Function : privCheckFormat() Description : This method check that the archive exists and is a valid zip archive. Several level of check exists. (futur) Parameters : $p_level : Level of check. Default 0.
0 : Check the first bytes (magic codes) (default value))
1 : 0 + Check the central directory (futur)
2 : 1 + Check each file header (futur) Return Values : true on success, false on error, the error code is set.

Это метод класса: PclZip{}

Хуков нет.

Возвращает

Null. Ничего.

Использование

$PclZip = new PclZip();
$PclZip->privCheckFormat( $p_level );

Код PclZip::privCheckFormat() WP 5.5.1

wp-admin/includes/class-pclzip.php
<?php
function privCheckFormat($p_level=0)
{
  $v_result = true;

	// ----- Reset the file system cache
  clearstatcache();

  // ----- Reset the error handler
  $this->privErrorReset();

  // ----- Look if the file exits
  if (!is_file($this->zipname)) {
    // ----- Error log
    PclZip::privErrorLog(PCLZIP_ERR_MISSING_FILE, "Missing archive file '".$this->zipname."'");
    return(false);
  }

  // ----- Check that the file is readable
  if (!is_readable($this->zipname)) {
    // ----- Error log
    PclZip::privErrorLog(PCLZIP_ERR_READ_OPEN_FAIL, "Unable to read archive '".$this->zipname."'");
    return(false);
  }

  // ----- Check the magic code
  // TBC

  // ----- Check the central header
  // TBC

  // ----- Check each file header
  // TBC

  // ----- Return
  return $v_result;
}