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)', 'action_function_name_6922' ); function action_function_name_6922( $sitemaps ){ // action... }
- $sitemaps(WPSEO_Sitemaps)
- Sitemaps object.
Где вызывается хук
wpseo_sitemap_stylesheet_cache_(type)
yoast/inc/sitemaps/class-sitemaps.php 291
do_action( 'wpseo_sitemap_stylesheet_cache_' . $type, $this );