wpseek.com
Bazujące na WordPress narzędzie wyszukiwania dla deweloperów i twórców motywów.



unzip_file › Filtr WordPress Hooks

Od6.4.0
Przestarzałyn/a
apply_filters( 'unzip_file', true, $file, $to, $needed_dirs, $required_space )
Parametry: (5)
  • (true|WP_Error) $result The result of unzipping the archive. True on success, otherwise WP_Error. Default true.
    Wymagane: Tak
  • (string) $file Full path and filename of ZIP archive.
    Wymagane: Tak
  • (string) $to Full path on the filesystem the archive was extracted to.
    Wymagane: Tak
  • (string[]) $needed_dirs A full list of required folders that were created.
    Wymagane: Tak
  • (float) $required_space The space required to unzip the file and copy its contents, with a 10% buffer.
    Wymagane: Tak
Zdefiniowane na:
Codex:

Filters the result of unzipping an archive.





Źródło

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