Description
Filters the connection types to output to the filesystem credentials form.
Occurrences
Filename | Line Number |
---|---|
wp-admin/includes/file.php | 2550 |
Parameters
Type | Name | Description |
---|---|---|
string[] | $types | Types of connections. |
array | $credentials | Credentials to connect with. |
string | $type | Chosen filesystem method. |
bool|WP_Error | $error | Whether the current request has failed to connect, or an error object. |
string | $context | Full path to the directory that is tested for being writable. |
PHP Doc
/**
* Filters the connection types to output to the filesystem credentials form.
*
* @since 2.9.0
* @since 4.6.0 The `$context` parameter default changed from `false` to an empty string.
*
* @param string[] $types Types of connections.
* @param array $credentials Credentials to connect with.
* @param string $type Chosen filesystem method.
* @param bool|WP_Error $error Whether the current request has failed to connect,
* or an error object.
* @param string $context Full path to the directory that is tested for being writable.
*/