File: wp-admin/includes/file.php
-
functionverify_file_md5()
Calculates and compares the MD5 of a file to its expected value.
-
functionget_home_path()
Gets the absolute filesystem path to the root of the WordPress installation.
-
functionunzip_file()
Unzips a specified ZIP file to a location on the filesystem via the WordPress Filesystem Abstraction.
-
functionlist_files()
Returns a listing of all files in the specified folder and all subdirectories up to 100 levels deep.
-
Filters whether to use ZipArchive to unzip archives.
-
functionwp_tempnam()
Returns a filename of a temporary unique file.
-
function_unzip_file_ziparchive()
Attempts to unzip an archive using the ZipArchive class.
-
functionvalidate_file_to_edit()
Makes sure that the file that was requested to be edited is allowed to be edited.
-
function_unzip_file_pclzip()
Attempts to unzip an archive using the PclZip library.
-
functionwp_handle_upload_error()
-
functioncopy_dir()
Copies a directory from one location to another via the WordPress Filesystem Abstraction.
-
functionwp_handle_upload()
Wrapper for _wp_handle_upload().
-
functionWP_Filesystem()
Initializes and connects the WordPress Filesystem Abstraction classes.
-
Filter data for the current file to upload.
-
Filters the path for a specific filesystem method class file.
-
hookwp_handle_upload
Filters the data array for the uploaded file.
-
functionwp_handle_sideload()
Wrapper for _wp_handle_upload().
-
functionget_file_description()
Gets the description for standard WordPress theme files.
-
Filters the list of file types allowed for editing in the plugin file editor.