WP HOOKS
akcjaod 6.8.0

set_site_transient

Args 3Plik wp-includes/option.phpDokumentacja WP ↗

Opis — z kodu źródłowego

Fires after the value for a site transient has been set.

Parametry

ParametrTypOpis
$transientstringThe name of the site transient.
$valuemixedSite transient value.
$expirationintTime 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
}

Popularne w tej kategorii