wpseo_sitemap_stylesheet_cache_(type)
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_sitemap_stylesheet_cache_(type)
yoast/inc/sitemaps/class-sitemaps.php 296
do_action( 'wpseo_sitemap_stylesheet_cache_' . $type, $this );