get_filesystem_method
get_filesystem_method ( $args = array(), $context = '', $allow_relaxed_file_ownership = false )
Parameters:- (array) args Optional. Connection details. Default empty array.
- (string) context Optional. Full path to the directory that is tested for being writable. Default empty.
- (bool) allow_relaxed_file_ownership Optional. Whether to allow Group/World writable. Default false.
Links:Returns:- (string) The transport to use, see description for valid return values.
Defined at: - Introduced in WordPress: 2.5.0
- Deprecated in WordPress: —
Description
Determines which method to use for reading, writing, modifying, or deleting
files on the filesystem.The priority of the transports are: Direct, SSH2, FTP PHP Extension, FTP Sockets
(Via Sockets class, or `fsockopen()`). Valid values for these are: 'direct', 'ssh2',
'ftpext' or 'ftpsockets'.
The return value can be overridden by defining the `FS_METHOD` constant in `wp-config.php`,
or filtering via {@see 'filesystem_method'}.