apply_filters( 'fs_ftp_connection_types', array $types, array $credentials, string $type, object $error, string $context )

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


Parameters

$types

Types of connections.

$credentials

Credentials to connect with.

$type

Chosen filesystem method.

$error

Error object.

$context

Full path to the directory that is tested for being writable.


Source

File: wp-admin/includes/file.php

View on GitHub



Changelog

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