wpseo_sitemap_stylesheet_cache_(type) хук-событиеYoast 1.0

Fires before the attempt to retrieve XML sitemap from the transient cache.

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

add_action( 'wpseo_sitemap_stylesheet_cache_(type)', 'wp_kama_wpseo_sitemap_stylesheet_cache_type_action' );

/**
 * Function for `wpseo_sitemap_stylesheet_cache_(type)` action-hook.
 * 
 * @param WPSEO_Sitemaps $sitemaps Sitemaps object.
 *
 * @return void
 */
function wp_kama_wpseo_sitemap_stylesheet_cache_type_action( $sitemaps ){

	// action...
}
$sitemaps(WPSEO_Sitemaps)
Sitemaps object.

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

WPSEO_Sitemaps::get_sitemap_from_cache()
wpseo_sitemap_stylesheet_cache_(type)
yoast/inc/sitemaps/class-sitemaps.php 314
do_action( 'wpseo_sitemap_stylesheet_cache_' . $type, $this );

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

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