wpseo_hit_sitemap_index хук-событие . Yoast 1.0
Использование
add_action( 'wpseo_hit_sitemap_index', 'action_function_name_1465' ); function action_function_name_1465(){ // action... }
Где вызывается хук
wpseo_hit_sitemap_index
yoast/inc/sitemaps/class-sitemaps-admin.php 134
do_action( 'wpseo_hit_sitemap_index' );
Где используется хук в ядре Yoast SEO
yoast/inc/sitemaps/class-sitemaps.php 102
add_action( 'wpseo_hit_sitemap_index', [ $this, 'hit_sitemap_index' ] );