W3cubDocs

/WordPress

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

$typesstring[]
Types of connections.
$credentialsarray
Credentials to connect with.
$typestring
Chosen filesystem method.
$errorbool|WP_Error
Whether the current request has failed to connect, or an error object.
$contextstring
Full path to the directory that is tested for being writable.

Source

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

Changelog

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

© 2003–2024 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/fs_ftp_connection_types