WP HOOKS
filtrod 2.9.0

fs_ftp_connection_types

Args 5Plik wp-admin/includes/file.phpDokumentacja WP ↗

Opis — z kodu źródłowego

Filters the connection types to output to the filesystem credentials form.

Parametry

ParametrTypOpis
$typesstring[]Types of connections.
$credentialsarrayCredentials to connect with.
$typestringChosen filesystem method.
$errorbool | \WP_ErrorWhether the current request has failed to connect, or an error object.
$contextstringFull 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
}

Popularne w tej kategorii