fs_ftp_connection_types WordPress Filter Hook

The fs_ftp_connection_types hook allows you to add additional connection types to the list of available FTP connections in the WordPress Settings page. This hook is useful if you want to add support for connecting to FTP servers that use a non-standard connection type.

apply_filters( 'fs_ftp_connection_types', string[] $types, array $credentials, string $type, bool|WP_Error $error, string $context ) #

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


Parameters

$types

(string[])Types of connections.

$credentials

(array)Credentials to connect with.

$type

(string)Chosen filesystem method.

$error

(bool|WP_Error)Whether the current request has failed to connect, or an error object.

$context

(string)Full path to the directory that is tested for being writable.


Top ↑

Source

File: wp-admin/includes/file.php

View on Trac



Top ↑

Changelog

Changelog
VersionDescription
4.6.0The $context parameter default changed from false to an empty string.
2.9.0Introduced.

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by theĀ Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.