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', 'filter_function_name_874' ); function filter_function_name_874( $unsigned ){ // filter... return $unsigned; }
- $unsigned(true/false)
- Enable cache or not.
По умолчанию: true
Где вызывается хук
wpseo_enable_xml_sitemap_transient_caching
yoast/inc/sitemaps/class-sitemaps-cache.php 86
return apply_filters( 'wpseo_enable_xml_sitemap_transient_caching', false );