akcjaod 6.8.0
set_site_transient
Opis — z kodu źródłowego
Fires after the value for a site transient has been set.
Parametry
| Parametr | Typ | Opis |
|---|---|---|
$transient | string | The name of the site transient. |
$value | mixed | Site transient value. |
$expiration | int | Time until expiration in seconds. |
Wywołanie
Rejestracja callbackaphp
// rejestracja funkcji zwrotnej — podaj liczbę argumentów!
add_action( 'set_site_transient', '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( 'set_site_transient', 'twoja_funkcja', 10, 3 );
function twoja_funkcja($param_1, $param_2, $param_3) {
// Twój kod
}Popularne w tej kategorii