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連線型別。

過濾要輸出到檔案系統憑據窗體的連線型別。

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
$types = apply_filters( 'fs_ftp_connection_types', $types, $credentials, $type, $error, $context );
$types = apply_filters( 'fs_ftp_connection_types', $types, $credentials, $type, $error, $context );
$types = apply_filters( 'fs_ftp_connection_types', $types, $credentials, $type, $error, $context );

常見問題

FAQs
檢視更多 >