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.


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

	return $types;
Types of connections.
Credentials to connect with.
Chosen filesystem method.
Error object.
Full path to the directory that is tested for being writable.


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

Where the hook is called

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

Where the hook is used (in WP core)

Usage not found!