fs_ftp_connection_types

FILTER wp-admin\includes\file.php (ligne 2544) github
Filters the connection types to output to the filesystem credentials form.

Paramètres

Entrée :
$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.

Utilisation

// 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;
}

Actualités

Chargement des actualités...