WordPress Hooks Explorer

Listing all hooks extracted WordPress Core


Details about fs_ftp_connection_types

Back to home

Files

Filename Hook Type Line Number PHP Doc
wp-admin/includes/file.php apply_filters 2337 /**
* 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.
*/

Hook Parameters

Parameter 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,
string $context Full path to the directory that is tested for being writable.