首页 WordPress函数大全 get_filesystem_method()

get_filesystem_method()

2020-05-01 / 2459阅 / 悠然

如何你看完本文还不知道如何使用该函数,可以联系我定制视频教程,50元/个函数,学不会全额退款

get_filesystem_method( array $args = array(), string $context = '', bool $allow_relaxed_file_ownership = false )

Determines which method to use for reading, writing, modifying, or deleting files>

Contents

  • Description
    • Parameters
    • Return
    • Source
    • Changelog
  • Related
    • Uses
    • Used By
  • User Contributed Notes

描述

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 ‘filesystem_method’.

参数

$args

(array)
(Optional)
Connection details.

Default value: array()

$context

(string)
(Optional)
Full path to the directory that is tested for being writable.

Default value: ''

$allow_relaxed_file_ownership

(bool)
(Optional)
Whether to allow Group/World writable.

Default value: false

返回

(string) The transport to use, see description for valid return values.

大家谈论
    我的见解