akcjaod 6.3.0
wp_cache_set_last_changed
Opis — z kodu źródłowego
Fires after a cache group `last_changed` time is updated.
This may occur multiple times per page load and registered actions must be performant.
Parametry
| Parametr | Typ | Opis |
|---|---|---|
$group | string | The cache group name. |
$time | string | The new last changed time (msec sec). |
$previous_time | string | false | The previous last changed time. False if not previously set. |
Wywołanie
Rejestracja callbackaphp
// rejestracja funkcji zwrotnej — podaj liczbę argumentów!
add_action( 'wp_cache_set_last_changed', 'twoja_funkcja', 10, 3 );
function twoja_funkcja($param_1, $param_2, $param_3) {
// Twój kod
}
// rejestracja funkcji zwrotnej — podaj liczbę argumentów!
add_action( 'wp_cache_set_last_changed', 'twoja_funkcja', 10, 3 );
function twoja_funkcja($param_1, $param_2, $param_3) {
// Twój kod
}Popularne w tej kategorii