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)
  • () result The result of unzipping the archive. True on success, otherwise WP_Error. Default true.
    Wymagane: Tak
  • () file Full path and filename of ZIP archive.
    Wymagane: Tak
  • () to Full path on the filesystem the archive was extracted to.
    Wymagane: Tak
  • () needed_dirs A full list of required folders that were created.
    Wymagane: Tak
  • () 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 );