fs_ftp_connection_types

过滤钩子


apply_filters( 'fs_ftp_connection_types', $types, $credentials, $type, $error, $context )
参数
  • (string[])
    $types
    Types of connections.
    Required:
  • (array)
    $credentials
    Credentials to connect with.
    Required:
  • (string)
    $type
    Chosen filesystem method.
    Required:
  • (bool|WP_Error)
    $error
    Whether the current request has failed to connect,
    or an error object.
    Required:
  • (string)
    $context
    Full path to the directory that is tested for being writable.
    Required:
定义位置
  • wp-admin/includes/file.php
    , line 2337
引入
4.6.0
弃用

Filters the connection types to output to the filesystem credentials form.

$types = apply_filters( 'fs_ftp_connection_types', $types, $credentials, $type, $error, $context );