WP HOOKS
filtrod 3.7.0

automatic_updates_is_vcs_checkout

Args 2Plik wp-admin/includes/class-wp-automatic-updater.phpDokumentacja WP ↗

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

ParametrTypOpis
$checkoutboolWhether a VCS checkout was discovered at <code>$context</code> or ABSPATH, or anywhere higher.
$contextstringThe 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
}

Popularne w tej kategorii