Filter HTML Sitemap category query for posts

Since SEOPress 3.3.7

function sp_sitemaps_html_cat_query($args_cat_query) {
//default
//$args_cat_query = array('orderby'=>'name','order'=>'ASC','meta_key'=>'_seopress_robots_index','meta_value'=>'yes','meta_compare'=>'NOT EXISTS','exclude'=>$seopress_xml_sitemap_html_exclude_option,'suppress_filters'=>false);
$args_cat_query['exclude'] = '10,12,20';//my ids
return $args_cat_query;
}
add_filter( 'seopress_sitemaps_html_cat_query', 'sp_sitemaps_html_cat_query' );

Last modified: January 23, 2019