A WordPress-centric search engine for devs and theme authors

wp-admin/includes/file.php › WordPress File

Filesystem API: Top-level functionality

Function Short description
copy_dirCopies a directory from one location to another via the WordPress Filesystem Abstraction.
download_urlDownloads a URL to a local temporary file using the WordPress HTTP API.
get_filesystem_methodDetermines which method to use for reading, writing, modifying, or deleting files on the filesystem.
get_file_descriptionGets the description for standard WordPress theme files.
get_home_pathGets the absolute filesystem path to the root of the WordPress installation.
list_filesReturns a listing of all files in the specified folder and all subdirectories up to 100 levels deep.
move_dirMoves a directory from one location to another.
request_filesystem_credentialsDisplays a form to the user to request for their FTP/SSH details in order to connect to the filesystem.
unzip_fileUnzips a specified ZIP file to a location on the filesystem via the WordPress Filesystem Abstraction.
validate_file_to_editMakes sure that the file that was requested to be edited is allowed to be edited.
verify_file_md5Calculates and compares the MD5 of a file to its expected value.
verify_file_signatureVerifies the contents of a file against its ED25519 signature.
wp_edit_theme_plugin_fileAttempts to edit a file for a theme or plugin.
wp_filesystemInitializes and connects the WordPress Filesystem Abstraction classes.
wp_get_plugin_file_editable_extensionsGets the list of file extensions that are editable in plugins.
wp_get_theme_file_editable_extensionsGets the list of file extensions that are editable for a given theme.
wp_handle_sideloadWrapper for _wp_handle_upload().
wp_handle_uploadWrapper for _wp_handle_upload().
wp_opcache_invalidateAttempts to clear the opcode cache for an individual PHP file.
wp_opcache_invalidate_directoryAttempts to clear the opcode cache for a directory of files.
wp_print_file_editor_templatesPrints file editor templates (for plugins and themes).
wp_print_request_filesystem_credentials_modalPrints the filesystem credentials modal when needed.
wp_tempnamReturns a filename of a temporary unique file.
wp_trusted_keysRetrieves the list of signing keys trusted by WordPress.
wp_zip_file_is_validDetermines whether the given file is a valid ZIP file.
_unzip_file_pclzipAttempts to unzip an archive using the PclZip library.
_unzip_file_ziparchiveAttempts to unzip an archive using the ZipArchive class.
_wp_handle_uploadHandles PHP uploads in WordPress.