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:
  • may define a custom transport handler, See WP_Filesystem().
Returns:
  • (string) The transport to use, see description for valid return values.
Defined at:

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'}.

Related Functions

get_term_meta, get_site_meta, wp_filesystem, request_filesystem_credentials, get_lastcommentmodified

Top Google Results

User discussions

wpseek mobile