wpseo_exclude_from_sitemap_by_term_ids хук-фильтр . Yoast 1.0
Filter: 'wpseo_exclude_from_sitemap_by_term_ids' - Allow excluding terms by ID.
Использование
add_filter( 'wpseo_exclude_from_sitemap_by_term_ids', 'filter_function_name_4934' ); function filter_function_name_4934( $terms_to_exclude ){ // filter... return $terms_to_exclude; }
- $terms_to_exclude(массив)
- The terms to exclude.
Где вызывается хук
wpseo_exclude_from_sitemap_by_term_ids
yoast/inc/sitemaps/class-taxonomy-sitemap-provider.php 232
$terms_to_exclude = apply_filters( 'wpseo_exclude_from_sitemap_by_term_ids', [] );