File: wp-admin/includes/file.php
-
functionwp_zip_file_is_valid()
Determines whether the given file is a valid ZIP file.
-
hookpre_unzip_file
Filters archive unzipping to override with a custom process.
-
hookunzip_file
Filters the result of unzipping an archive.
-
Attempts to clear the opcode cache for a directory of files.
-
functionmove_dir()
Moves a directory from one location to another.
-
Filters the override parameters for a file before it is uploaded to WordPress.
-
functionwp_opcache_invalidate()
Attempts to clear the opcode cache for an individual PHP file.
-
Filters whether to invalidate a file from the opcode cache.
-
Filters the list of hosts which should have Signature Verification attempted on.
-
hookwp_signature_url
Filters the URL where the signature for a file is located.
-
Filters whether Signature Verification failures should be allowed to soft fail.
-
functionverify_file_signature()
Verifies the contents of a file against its ED25519 signature.
-
functionwp_trusted_keys()
Retrieves the list of signing keys trusted by WordPress.
-
hookwp_trusted_keys
Filters the valid signing keys used to verify the contents of files.
-
Filters the maximum error response body size in `download_url()`.
-
Filters whether to short-circuit moving the uploaded file after passing all checks.
-
functionwp_edit_theme_plugin_file()
Attempts to edit a file for a theme or plugin.
-
Gets the list of file extensions that are editable in plugins.
-
Gets the list of file extensions that are editable for a given theme.
-
functionwp_print_file_editor_templates()
Prints file editor templates (for plugins and themes).
-
Filters the list of file types allowed for editing in the theme file editor.
-
Prints the filesystem credentials modal when needed.
-
function_wp_handle_upload()
Handles PHP uploads in WordPress.
-
Filters the data for a file before it is uploaded to WordPress.
-
Filters the filesystem method to use.
-
functionrequest_filesystem_credentials()
Displays a form to the user to request for their FTP/SSH details in order to connect to the filesystem.
-
Filters the filesystem credentials.
-
Filters the connection types to output to the filesystem credentials form.
-
functionget_filesystem_method()
Determines which method to use for reading, writing, modifying, or deleting files on the filesystem.
-
functiondownload_url()
Downloads a URL to a local temporary file using the WordPress HTTP API.