filtrod 6.6.0
wp_theme_files_cache_ttl
Opis — z kodu źródłowego
Filters the cache expiration time for theme files.
Parametry
| Parametr | Typ | Opis |
|---|---|---|
$cache_expiration | int | Cache expiration time in seconds. |
$cache_type | string | Type of cache being set. |
Wywołanie
Rejestracja callbackaphp
// rejestracja funkcji zwrotnej — podaj liczbę argumentów!
add_filter( 'wp_theme_files_cache_ttl', 'twoja_funkcja', 10, 2 );
function twoja_funkcja($param_1, $param_2) {
// Twój kod
}
// rejestracja funkcji zwrotnej — podaj liczbę argumentów!
add_filter( 'wp_theme_files_cache_ttl', 'twoja_funkcja', 10, 2 );
function twoja_funkcja($param_1, $param_2) {
// Twój kod
}Popularne w tej kategorii