Summery Summery

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

Syntax Syntax

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

Parameters Parameters


(string[]) Types of connections.


(array) Credentials to connect with.


(string) Chosen filesystem method.


(bool|WP_Error) Whether the current request has failed to connect, or an error object.


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

Source Source

File: wp-admin/includes/file.php


Changelog Changelog

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


Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.

What are you looking for?