1. 首页
  2. WordPress钩子手册

filesystem_method

apply_filters( ‘filesystem_method’, string $method, array $args, string $context, bool $allow_relaxed_file_ownership )

过滤器::过滤要使用的文件系统方法。
Filter Hook: Filters the filesystem method to use.

目录锚点:#参数#源码


参数(Parameters)

参数 类型 说明
$method (string) 要返回的文件系统方法。
$args (array) 方法的连接详细信息数组。
$context (string) 测试为可写的目录的完整路径。
$allow_relaxed_file_ownership (bool) 是否允许组/世界可写。

源码(Source)


更新版本 源码位置 使用 被使用
2.6.0 wp-admin/includes/file.php:1940 1 0

filesystem_method 为WP2原创文章,链接:https://www.wp2.cn/hook/filesystem_method/