wpseek.com
Eine auf WordPress spezialiserte Suchmaschine für Entwickler und Theme-Autoren



unzip_file › WordPress Filter Hooks

Seit6.4.0
Veraltetn/v
apply_filters( 'unzip_file', true, $file, $to, $needed_dirs, $required_space )
Parameter: (5)
  • (true|WP_Error) $result The result of unzipping the archive. True on success, otherwise WP_Error. Default true.
    Erforderlich: Ja
  • (string) $file Full path and filename of ZIP archive.
    Erforderlich: Ja
  • (string) $to Full path on the filesystem the archive was extracted to.
    Erforderlich: Ja
  • (string[]) $needed_dirs A full list of required folders that were created.
    Erforderlich: Ja
  • (float) $required_space The space required to unzip the file and copy its contents, with a 10% buffer.
    Erforderlich: Ja
Definiert in:
Codex:

Filters the result of unzipping an archive.





Quellcode

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