wpseo_sitemap_exclude_empty_terms_taxonomy хук-фильтр . Yoast 1.0
Filter the setting of excluding empty terms from the XML sitemap for a specific taxonomy.
Использование
add_filter( 'wpseo_sitemap_exclude_empty_terms_taxonomy', 'filter_function_name_9106', 10, 2 ); function filter_function_name_9106( $exclude, $taxonomy_name ){ // filter... return $exclude; }
- $exclude(true/false)
- Defaults to the sitewide setting.
- $taxonomy_name(строка)
- The name of the taxonomy being processed.
Где вызывается хук
wpseo_sitemap_exclude_empty_terms_taxonomy
wpseo_sitemap_exclude_empty_terms_taxonomy
yoast/inc/sitemaps/class-taxonomy-sitemap-provider.php 93
$hide_empty_tax = apply_filters( 'wpseo_sitemap_exclude_empty_terms_taxonomy', $hide_empty, $taxonomy_name );
yoast/inc/sitemaps/class-taxonomy-sitemap-provider.php 195
$hide_empty_tax = apply_filters( 'wpseo_sitemap_exclude_empty_terms_taxonomy', $hide_empty, $taxonomy->name );