wp_filesystem
wp_filesystem ( $args = false, $context = false, $allow_relaxed_file_ownership = false )
Parameters:- (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.
Returns:- (bool|null) True on success, false on failure, null if the filesystem method class file does not exist.
Defined at: - Introduced in WordPress: 2.5.0
- Deprecated in WordPress: —
Description
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.