wpseek.com
Uma área de pesquisa sobre o WordPress para devs e autores do tema



unzip_file › Hooks de Filtros WordPress

Desde6.4.0
Obsoleton/a
apply_filters( 'unzip_file', true, $file, $to, $needed_dirs, $required_space )
Parâmetros: (5)
  • (true|WP_Error) $result The result of unzipping the archive. True on success, otherwise WP_Error. Default true.
    Required: Yes
  • (string) $file Full path and filename of ZIP archive.
    Required: Yes
  • (string) $to Full path on the filesystem the archive was extracted to.
    Required: Yes
  • (string[]) $needed_dirs A full list of required folders that were created.
    Required: Yes
  • (float) $required_space The space required to unzip the file and copy its contents, with a 10% buffer.
    Required: Yes
Definido em:
Codex:

Filters the result of unzipping an archive.





Fonte

$result = apply_filters( 'unzip_file', true, $file, $to, $needed_dirs, $required_space );