filtrod 5.5.0
wp_opcache_invalidate_file
Opis — z kodu źródłowego
Filters whether to invalidate a file from the opcode cache.
Parametry
| Parametr | Typ | Opis |
|---|---|---|
$will_invalidate | bool | Whether WordPress will invalidate <code>$filepath</code>. Default true. |
$filepath | string | The 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
}
// 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