filtrod 2.6.0
filesystem_method
Opis — z kodu źródłowego
Filters the filesystem method to use.
Parametry
| Parametr | Typ | Opis |
|---|---|---|
$method | string | Filesystem method to return. |
$args | array | An array of connection details for the method. |
$context | string | Full path to the directory that is tested for being writable. |
$allow_relaxed_file_ownership | bool | Whether to allow Group/World writable. |
Wywołanie
Rejestracja callbackaphp
// rejestracja funkcji zwrotnej — podaj liczbę argumentów!
add_filter( 'filesystem_method', 'twoja_funkcja', 10, 4 );
function twoja_funkcja($param_1, $param_2, $param_3, $param_4) {
// Twój kod
}
// rejestracja funkcji zwrotnej — podaj liczbę argumentów!
add_filter( 'filesystem_method', 'twoja_funkcja', 10, 4 );
function twoja_funkcja($param_1, $param_2, $param_3, $param_4) {
// Twój kod
}Popularne w tej kategorii