wpseek.com
Outil de recherche WordPress pour les développeurs et auteurs de thèmes



unzip_file › Les Filtres WordPress

Depuis6.4.0
Dépréciéen/a
apply_filters( 'unzip_file', true, $file, $to, $needed_dirs, $required_space )
Paramètres: (5)
  • (true|WP_Error) $result The result of unzipping the archive. True on success, otherwise WP_Error. Default true.
    Requis: Oui
  • (string) $file Full path and filename of ZIP archive.
    Requis: Oui
  • (string) $to Full path on the filesystem the archive was extracted to.
    Requis: Oui
  • (string[]) $needed_dirs A full list of required folders that were created.
    Requis: Oui
  • (float) $required_space The space required to unzip the file and copy its contents, with a 10% buffer.
    Requis: Oui
Défini(e) dans:
Codex:

Filters the result of unzipping an archive.





Source

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