WordPress at a glance
filter is not described

fs_ftp_connection_types filter-hook . WP 2.9.0

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

Usage

add_filter( 'fs_ftp_connection_types', 'filter_function_name_6929', 10, 5 );
function filter_function_name_6929( $types, $credentials, $type, $error, $context ){
	// filter...

	return $types;
}
$types(array)
Types of connections.
$credentials(array)
Credentials to connect with.
$type(string)
Chosen filesystem method.
$error(object)
Error object.
$context(string)
Full path to the directory that is tested for being writable.

Notes

  • Since 4.6.0 The $context parameter default changed from false to an empty string.

Where the hook is called

request_filesystem_credentials()
fs_ftp_connection_types
wp-admin/includes/file.php 1675
$types = apply_filters( 'fs_ftp_connection_types', $types, $credentials, $type, $error, $context );

Where the hook is used (in WP core)

Does not used.