php
<?php
add_filter( 'aioseo_sitemap_exclude_terms', 'aioseo_sitemap_filter_excluded_terms', 10, 2 );
function aioseo_sitemap_filter_excluded_terms( $ids, $type ) {
   if ( 'general' === $type ) {
      $ids[] = 412;
   }
   return $ids;
}