Filter taxonomies list in XML index sitemap

Since SEOPress 2.4

function sp_sitemaps_index_tax_query($args, $term_value) {
//Default Query  
//$args = array('taxonomy' => $term_value,'hide_empty' => false,'lang' => '');
    $args['hide_empty'] = true;
    return $args;
}
add_filter('seopress_sitemaps_index_tax_query', 'sp_sitemaps_index_tax_query', 10, 2);

Last modified: April 1, 2018