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



pre_unzip_file › WordPress Filter Hooks

Seit6.4.0
Veraltetn/v
apply_filters( 'pre_unzip_file', null, $file, $to, $needed_dirs, $required_space )
Parameter: (5)
  • (null|true|WP_Error) $result The result of the override. True on success, otherwise WP Error. Default null.
    Erforderlich: Ja
  • (string) $file Full path and filename of ZIP archive.
    Erforderlich: Ja
  • (string) $to Full path on the filesystem to extract archive to.
    Erforderlich: Ja
  • (string[]) $needed_dirs A full list of required folders that need to be 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 archive unzipping to override with a custom process.





Quellcode

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