unzip_file

unzip_file

Hook Type: filter

See hook in core

Displaying hooks found in version: wordpress-6.7.1

apply_filters('unzip_file') is found 2 times:

  • /wp-admin/includes/file.php line 1830
    	 * @param string        $to             Full path on the filesystem the archive was extracted to.
    	 * @param string[]      $needed_dirs    A full list of required folders that were created.
    	 * @param float         $required_space The space required to unzip the file and copy its contents, with a 10% buffer.
    	 */
    	$result = apply_filters( 'unzip_file', true, $file, $to, $needed_dirs, $required_space );
    
    	unset( $needed_dirs );
    
    	return $result;
    }
    
    
  • /wp-admin/includes/file.php line 1972
    		}
    	}
    
    	/** This action is documented in src/wp-admin/includes/file.php */
    	$result = apply_filters( 'unzip_file', true, $file, $to, $needed_dirs, $required_space );
    
    	unset( $needed_dirs );
    
    	return $result;
    }