filtrod 2.8.0
upgrader_source_selection
Opis — z kodu źródłowego
Filters the source file location for the upgrade package.
Parametry
| Parametr | Typ | Opis |
|---|---|---|
$source | string | File source location. |
$remote_source | string | Remote file source location. |
$upgrader | \WP_Upgrader | WP_Upgrader instance. |
$hook_extra | array | Extra arguments passed to hooked filters. |
Wywołanie
Rejestracja callbackaphp
// rejestracja funkcji zwrotnej — podaj liczbę argumentów!
add_filter( 'upgrader_source_selection', '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( 'upgrader_source_selection', 'twoja_funkcja', 10, 4 );
function twoja_funkcja($param_1, $param_2, $param_3, $param_4) {
// Twój kod
}Popularne w tej kategorii