filtrod 3.7.0
automatic_updates_is_vcs_checkout
Opis — z kodu źródłowego
Filters whether the automatic updater should consider a filesystem location to be potentially managed by a version control system.
Parametry
| Parametr | Typ | Opis |
|---|---|---|
$checkout | bool | Whether a VCS checkout was discovered at <code>$context</code> or ABSPATH, or anywhere higher. |
$context | string | The filesystem context (a path) against which filesystem status should be checked. |
Wywołanie
Rejestracja callbackaphp
// rejestracja funkcji zwrotnej — podaj liczbę argumentów!
add_filter( 'automatic_updates_is_vcs_checkout', 'twoja_funkcja', 10, 2 );
function twoja_funkcja($param_1, $param_2) {
// Twój kod
}
// rejestracja funkcji zwrotnej — podaj liczbę argumentów!
add_filter( 'automatic_updates_is_vcs_checkout', 'twoja_funkcja', 10, 2 );
function twoja_funkcja($param_1, $param_2) {
// Twój kod
}Popularne w tej kategorii