WP HOOKS
filtrod 2.8.0

wp_feed_cache_transient_lifetime

Args 2Plik wp-includes/class-wp-feed-cache-transient.phpDokumentacja WP ↗

Opis — z kodu źródłowego

Filters the transient lifetime of the feed cache.

Parametry

ParametrTypOpis
$lifetimeintCache duration in seconds. Default is 43200 seconds (12 hours).
$namestringUnique identifier for the cache object.

Wywołanie

Rejestracja callbackaphp
// rejestracja funkcji zwrotnej — podaj liczbę argumentów!
add_filter( 'wp_feed_cache_transient_lifetime', 'twoja_funkcja', 10, 2 );

function twoja_funkcja($param_1, $param_2) {
	// Twój kod
}

Popularne w tej kategorii