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

PclZip::delete() public WP 1.0

Function : delete([$p_option, $p_option_value, ...]) Description : This method removes files from the archive. If no parameters are given, then all the archive is emptied. Parameters : None or optional arguments. Options : PCLZIP_OPT_BY_INDEX : PCLZIP_OPT_BY_NAME : PCLZIP_OPT_BY_EREG : PCLZIP_OPT_BY_PREG : Return Values :
0 on failure, The list of the files which are still present in the archive. (see PclZip::listContent() for list entry format)

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

Хуков нет.

Возвращает

Null. Ничего.

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

$PclZip = new PclZip();
$PclZip->delete();

Код PclZip::delete() WP 5.5.1

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

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

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

  // ----- Set default values
  $v_options = array();

  // ----- Look for variable options arguments
  $v_size = func_num_args();

  // ----- Look for arguments
  if ($v_size > 0) {
    // ----- Get the arguments
    $v_arg_list = func_get_args();

    // ----- Parse the options
    $v_result = $this->privParseOptions($v_arg_list, $v_size, $v_options,
                                      array (PCLZIP_OPT_BY_NAME => 'optional',
                                             PCLZIP_OPT_BY_EREG => 'optional',
                                             PCLZIP_OPT_BY_PREG => 'optional',
                                             PCLZIP_OPT_BY_INDEX => 'optional' ));
    if ($v_result != 1) {
        return 0;
    }
  }

  // ----- Magic quotes trick
  $this->privDisableMagicQuotes();

  // ----- Call the delete fct
  $v_list = array();
  if (($v_result = $this->privDeleteByRule($v_list, $v_options)) != 1) {
    $this->privSwapBackMagicQuotes();
    unset($v_list);
    return(0);
  }

  // ----- Magic quotes trick
  $this->privSwapBackMagicQuotes();

  // ----- Return
  return $v_list;
}