wpseo_enable_xml_sitemap_transient_caching хук-фильтрYoast 1.0

Filter if XML sitemap transient cache is enabled.

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

add_filter( 'wpseo_enable_xml_sitemap_transient_caching', 'wp_kama_wpseo_enable_xml_sitemap_transient_caching_filter' );

/**
 * Function for `wpseo_enable_xml_sitemap_transient_caching` filter-hook.
 * 
 * @param bool $unsigned Enable cache or not.
 *
 * @return bool
 */
function wp_kama_wpseo_enable_xml_sitemap_transient_caching_filter( $unsigned ){

	// filter...
	return $unsigned;
}
$unsigned(true|false)
Enable cache or not.
По умолчанию: true

Где вызывается хук

WPSEO_Sitemaps_Cache::is_enabled()
wpseo_enable_xml_sitemap_transient_caching
yoast/inc/sitemaps/class-sitemaps-cache.php 88
return apply_filters( 'wpseo_enable_xml_sitemap_transient_caching', false );

Где используется хук в Yoast SEO

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