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:
定义位置
相关勾子
feed_content_typerest_comment_collection_paramsget_comment_typerest_user_collection_paramsset_object_terms
相关方法
feed_content_typeis_avatar_comment_typestr_containsget_comment_type_wp_privacy_action_request_typeswp_get_mime_types
引入
4.6.0
弃用
-

fs_ftp_connection_types是一个过滤钩子,允许开发者修改WordPress中可用的FTP连接类型。

过滤要输出到文件系统凭据窗体的连接类型。

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

常见问题

FAQs
查看更多 >