wp_filesystem ( $args = false, $context = false, $allow_relaxed_file_ownership = false )

  • (array|bool) args Optional. Connection args, These are passed directly to the `WP_Filesystem_*()` classes. Default false.
  • (string|bool) context Optional. Context for get_filesystem_method(). Default false.
  • (bool) allow_relaxed_file_ownership Optional. Whether to allow Group/World writable. Default false.
  • (bool|null) True on success, false on failure, null if the filesystem method class file does not exist.
Defined at:


Initializes and connects the WordPress Filesystem Abstraction classes.This function will include the chosen transport and attempt connecting. Plugins may add extra transports, And force WordPress to use them by returning the filename via the Array filter.

Related Functions

wp_is_stream, get_filesystem_method, wp_title_rss, wp_check_filetype, wp_delete_term

Top Google Results

User discussions

wpseek mobile