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