filtrod 3.4.0
wp_cache_themes_persistently
Opis — z kodu źródłowego
Filters whether to get the cache of the registered theme directories.
Parametry
| Parametr | Typ | Opis |
|---|---|---|
$cache_expiration | bool | Whether to get the cache of the theme directories. Default false. |
$context | string | The class or function name calling the filter. |
Wywołanie
Rejestracja callbackaphp
// rejestracja funkcji zwrotnej — podaj liczbę argumentów!
add_filter( 'wp_cache_themes_persistently', 'twoja_funkcja', 10, 2 );
function twoja_funkcja($param_1, $param_2) {
// Twój kod
}
// rejestracja funkcji zwrotnej — podaj liczbę argumentów!
add_filter( 'wp_cache_themes_persistently', 'twoja_funkcja', 10, 2 );
function twoja_funkcja($param_1, $param_2) {
// Twój kod
}Popularne w tej kategorii