Simply Exclude – Category feed exclusion is excluding from category feed instead of just the main feed

It took me a while but I figured it out, I just placed this in mu functions.php file:

function remove_se_filters($query) {

  if($query->is_feed && $query->is_category){
    global $wp_filter;

    foreach($wp_filter['pre_get_posts'][999] as $key=>$filter){
      if(strpos($key, 'se_filters') !== false){
        unset($wp_filter['pre_get_posts'][999][$key]);
      }
    }
  }

  return $query;
}

add_filter('pre_get_posts','remove_se_filters');

I found that I couldn’t use the remove filter function because I did not have access to the original class variable that was used to set the filter in the first place so going into the filer’s global variable and unsetting the array manually was the next best option.