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



pre_unzip_file › Filtr WordPress Hooks

Od6.4.0
Przestarzałyn/a
› apply_filters( 'pre_unzip_file', null, $file, $to, $needed_dirs, $required_space )
Parametry: (5)
  • () result The result of the override. True on success, otherwise WP Error. Default null.
    Wymagane: Tak
  • () file Full path and filename of ZIP archive.
    Wymagane: Tak
  • () to Full path on the filesystem to extract archive to.
    Wymagane: Tak
  • () needed_dirs A full list of required folders that need to be 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 archive unzipping to override with a custom process.





Źródło

$pre = apply_filters( 'pre_unzip_file', null, $file, $to, $needed_dirs, $required_space );