akcjaod 4.6.0
clean_site_cache
Opis — z kodu źródłowego
Fires immediately after a site has been removed from the object cache.
Parametry
| Parametr | Typ | Opis |
|---|---|---|
$id | string | Site ID as a numeric string. |
$blog | \WP_Site | Site object. |
$domain_path_key | string | md5 hash of domain and path. |
Wywołanie
Rejestracja callbackaphp
// rejestracja funkcji zwrotnej — podaj liczbę argumentów!
add_action( 'clean_site_cache', '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( 'clean_site_cache', 'twoja_funkcja', 10, 3 );
function twoja_funkcja($param_1, $param_2, $param_3) {
// Twój kod
}