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

  • (array|false) args Optional. Connection args, These are passed directly to the `WP_Filesystem_*()` classes. Default false.
  • (string|false) 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 {@see 'filesystem_method_file'} filter.

Related Functions

wp_filesize, wp_is_stream, get_filesystem_method, wp_title_rss, wp_check_filetype

Top Google Results

User discussions

wpseek mobile