wpseo_sitemap_index_links хук-фильтр . Yoast 1.0
Filter the sitemap links array before the index sitemap is built.
Использование
add_filter( 'wpseo_sitemap_index_links', 'filter_function_name_5855' ); function filter_function_name_5855( $links ){ // filter... return $links; }
- $links(массив)
- Array of sitemap links
Где вызывается хук
wpseo_sitemap_index_links
yoast/inc/sitemaps/class-sitemaps.php 395
$links = apply_filters( 'wpseo_sitemap_index_links', $links );