fs_ftp_connection_types
apply_filters( ‘fs_ftp_connection_types’, string[] $types , array $credentials , string $type , bool|WP_Error $error , string $context )
过滤器::过滤要输出到文件系统凭据窗体的连接类型。
Filter Hook: Filters the connection types to output to the filesystem credentials form.
参数(Parameters)
参数 | 类型 | 说明 |
---|---|---|
$types | (string[]) | 连接类型。 |
$credentials | (array) | 要连接的凭据。 |
$type | (string) | 选择的文件系统方法。 |
$error | (bool | WP_Error) | 当前请求是连接失败,还是错误对象。 |
$context | (string) | 测试为可写的目录的完整路径。 |
源码(Source)
更新版本 | 源码位置 | 使用 | 被使用 |
---|---|---|---|
4.6.0 | wp-admin/includes/file.php:2121 | 1 | 0 |
fs_ftp_connection_types 为WP2原创文章,链接:https://www.wp2.cn/hook/fs_ftp_connection_types/