Filter hierarchical post type query in HTML sitemap

Since SEOPress 3.3.7

function sp_sitemaps_html_pages_query($args2) {
//default:
//$args2 = array('include'=>$postslist, 'sort_order' => $seopress_xml_sitemap_html_order_option, 'sort_column' => $seopress_xml_sitemap_html_orderby_option);
$args2['exclude'] = 10; //exclude post with ID 10
return $args2;
}
add_filter( 'seopress_sitemaps_html_pages_query', 'sp_sitemaps_html_pages_query' );

Last modified: January 30, 2019