wpseo_sitemap_(type)_content хук-фильтр . Yoast 1.0
Filter to add extra URLs to the XML sitemap by type.
Only runs for the first page, not on all.
Использование
add_filter( 'wpseo_sitemap_(type)_content', 'filter_function_name_2320' ); function filter_function_name_2320( $content ){ // filter... return $content; }
- $content(строка)
- String content to add.
По умолчанию: ''
Где вызывается хук
wpseo_sitemap_(type)_content
yoast/inc/sitemaps/class-sitemaps-renderer.php 122
$xml .= apply_filters( "wpseo_sitemap_{$type}_content", '' );