WPSEO_Sitemaps_Cache::is_enabled()publicYoast 3.2

If cache is enabled.

Метод класса: WPSEO_Sitemaps_Cache{}

Хуки из метода

Возвращает

true|false.

Использование

$WPSEO_Sitemaps_Cache = new WPSEO_Sitemaps_Cache();
$WPSEO_Sitemaps_Cache->is_enabled();

Список изменений

С версии 3.2 Введена.

Код WPSEO_Sitemaps_Cache::is_enabled() Yoast 22.3

public function is_enabled() {

	/**
	 * Filter if XML sitemap transient cache is enabled.
	 *
	 * @param bool $unsigned Enable cache or not, defaults to true.
	 */
	return apply_filters( 'wpseo_enable_xml_sitemap_transient_caching', false );
}