WP HOOKS
filtrod 5.5.0

wp_opcache_invalidate_file

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

Opis — z kodu źródłowego

Filters whether to invalidate a file from the opcode cache.

Parametry

ParametrTypOpis
$will_invalidateboolWhether WordPress will invalidate <code>$filepath</code>. Default true.
$filepathstringThe path to the PHP file to invalidate.

Wywołanie

Rejestracja callbackaphp
// rejestracja funkcji zwrotnej — podaj liczbę argumentów!
add_filter( 'wp_opcache_invalidate_file', 'twoja_funkcja', 10, 2 );

function twoja_funkcja($param_1, $param_2) {
	// Twój kod
}

Popularne w tej kategorii