Filters the connection types to output to the filesystem credentials form.
$types, $credentials, $type, $error, $context
Sortie :
@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, @param string $context Full path to the directory that is tested for being writable.
// Modifier la valeur avec le filtre 'fs_ftp_connection_types'
add_filter('fs_ftp_connection_types', 'ma_fonction_filtre', 10, 1);
function ma_fonction_filtre($types) {
// Modifier la valeur
return $types;
}
Chargement des actualités...