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

PclZip::merge() public WP 1.0

Function : merge() Description : This method merge the $p_archive_to_add archive at the end of the current one ($this). If the archive ($this) does not exist, the merge becomes a duplicate. If the $p_archive_to_add archive does not exist, the merge is a success. Parameters : $p_archive_to_add : It can be directly the filename of a valid zip archive, or a PclZip object archive. Return Values :
1 on success,
0 or negative values on error (see below).

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

Хуков нет.

Возвращает

Null. Ничего.

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

$PclZip = new PclZip();
$PclZip->merge( $p_archive_to_add );

Код PclZip::merge() WP 5.5.1

wp-admin/includes/class-pclzip.php
<?php
function merge($p_archive_to_add)
{
  $v_result = 1;

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

  // ----- Check archive
  if (!$this->privCheckFormat()) {
    return(0);
  }

  // ----- Look if the $p_archive_to_add is a PclZip object
  if ((is_object($p_archive_to_add)) && (get_class($p_archive_to_add) == 'pclzip'))
  {

    // ----- Merge the archive
    $v_result = $this->privMerge($p_archive_to_add);
  }

  // ----- Look if the $p_archive_to_add is a string (so a filename)
  else if (is_string($p_archive_to_add))
  {

    // ----- Create a temporary archive
    $v_object_archive = new PclZip($p_archive_to_add);

    // ----- Merge the archive
    $v_result = $this->privMerge($v_object_archive);
  }

  // ----- Invalid variable
  else
  {
    // ----- Error log
    PclZip::privErrorLog(PCLZIP_ERR_INVALID_PARAMETER, "Invalid variable type p_archive_to_add");
    $v_result = PCLZIP_ERR_INVALID_PARAMETER;
  }

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