wpseo_sitemap_exclude_taxonomy хук-фильтр . Yoast 1.0
Filter to exclude the taxonomy from the XML sitemap.
Использование
add_filter( 'wpseo_sitemap_exclude_taxonomy', 'filter_function_name_5723', 10, 2 ); function filter_function_name_5723( $exclude, $taxonomy_name ){ // filter... return $exclude; }
- $exclude(true/false)
- Defaults to false.
- $taxonomy_name(строка)
- Name of the taxonomy to exclude..
Где вызывается хук
wpseo_sitemap_exclude_taxonomy
yoast/inc/sitemaps/class-taxonomy-sitemap-provider.php 302
if ( apply_filters( 'wpseo_sitemap_exclude_taxonomy', false, $taxonomy_name ) ) {