WordPress at Your Fingertips
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_1006', 10, 5 );
function filter_function_name_1006( $types, $credentials, $type, $error, $context ){
	// filter...

	return $types;
Types of connections.
Credentials to connect with.
Chosen filesystem method.
Whether the current request has failed to connect, or an 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 2268
$types = apply_filters( 'fs_ftp_connection_types', $types, $credentials, $type, $error, $context );

Where in WP core the hook is used WordPress

Usage not found.