filtrod 2.9.0
fs_ftp_connection_types
Opis — z kodu źródłowego
Filters the connection types to output to the filesystem credentials form.
Parametry
| Parametr | Typ | Opis |
|---|---|---|
$types | string[] | Types of connections. |
$credentials | array | Credentials to connect with. |
$type | string | Chosen filesystem method. |
$error | bool | \WP_Error | Whether the current request has failed to connect, or an error object. |
$context | string | Full path to the directory that is tested for being writable. |
Wywołanie
Rejestracja callbackaphp
// rejestracja funkcji zwrotnej — podaj liczbę argumentów!
add_filter( 'fs_ftp_connection_types', 'twoja_funkcja', 10, 5 );
function twoja_funkcja($param_1, $param_2, $param_3, $param_4, $param_5) {
// Twój kod
}
// rejestracja funkcji zwrotnej — podaj liczbę argumentów!
add_filter( 'fs_ftp_connection_types', 'twoja_funkcja', 10, 5 );
function twoja_funkcja($param_1, $param_2, $param_3, $param_4, $param_5) {
// Twój kod
}Popularne w tej kategorii