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_2735', 10, 5 );
function filter_function_name_2735( $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.

Список изменений

С версии 2.9.0 Введена.
С версии 4.6.0 The $context parameter default changed from false to an empty string.

Где вызывается хук

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

Где используется хук в ядре WP

Использование не найдено.