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
-
(array) Types of connections.
- $credentials
-
(array) Credentials to connect with.
- $type
-
(string) Chosen filesystem method.
- $error
-
(object) Error object.
- $context
-
(string) Full path to the directory that is tested for being writable.
Source
Changelog
Version | Description |
---|---|
WP-4.6.0 | The $context parameter default changed from false to an empty string. |
WP-2.9.0 | Introduced. |