Yoast\WP\SEO\Schema_Aggregator\Infrastructure
Config::cache_enabled
Check if caching is enabled.
Метод класса: Config{}
Хуки из метода
Возвращает
bool. True if caching is enabled, false otherwise.
Использование
$Config = new Config(); $Config->cache_enabled(): bool;
Код Config::cache_enabled() Config::cache enabled Yoast 28.9
public function cache_enabled(): bool {
$enabled = \apply_filters( 'wpseo_schema_aggregator_cache_enabled', true );
if ( \is_bool( $enabled ) ) {
return $enabled;
}
else {
return true;
}
}