apply_filters( 'fs_ftp_connection_types', string[] $types, array $credentials, string $type, bool|WP_Error $error, string $context )

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


$types string[]
Types of connections.
$credentials array
Credentials to connect with.
$type string
Chosen filesystem method.
$error bool|WP_Error
Whether the current request has failed to connect, or an error object.
$context string
Full path to the directory that is tested for being writable.

Top ↑


File: wp-admin/includes/file.php. View all references

$types = apply_filters( 'fs_ftp_connection_types', $types, $credentials, $type, $error, $context );

Top ↑


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

Top ↑

User Contributed Notes

You must log in before being able to contribute a note or feedback.