public function updated_term($term_id, $taxonomy)
 {
     $args = array('post_type' => WPUPG_POST_TYPE, 'post_status' => 'any', 'posts_per_page' => -1, 'nopaging' => true);
     $query = new WP_Query($args);
     $posts = $query->have_posts() ? $query->posts : array();
     $grid_ids = array();
     foreach ($posts as $post) {
         $grid = new WPUPG_Grid($post);
         if (in_array($taxonomy, $grid->filter_taxonomies())) {
             $grid_ids[] = $grid->ID();
         }
     }
     if (count($grid_ids) > 0) {
         update_option('wpupg_regenerate_grids_check', $grid_ids);
     }
 }
?>
</label></td>
        <td>
            <?php 
$post_types = get_post_types('', 'objects');
unset($post_types[WPUPG_POST_TYPE]);
unset($post_types['revision']);
unset($post_types['nav_menu_item']);
foreach ($post_types as $post_type => $options) {
    $taxonomies = get_object_taxonomies($post_type, 'objects');
    if (count($taxonomies) > 0) {
        $multiple = WPUltimatePostGrid::is_premium_active() ? ' multiple' : '';
        echo '<div id="wpupg_filter_taxonomy_' . $post_type . '_container" class="wpupg_filter_taxonomy_container">';
        echo '<select name="wpupg_filter_taxonomy_' . $post_type . '[]" id="wpupg_filter_taxonomy_' . $post_type . '" class="wpupg-select2"' . $multiple . '>';
        foreach ($taxonomies as $taxonomy => $tax_options) {
            $selected = in_array($taxonomy, $grid->filter_taxonomies()) ? ' selected="selected"' : '';
            echo '<option value="' . esc_attr($taxonomy) . '"' . $selected . '>' . $tax_options->labels->name . '</option>';
        }
        echo '</select>';
        echo '</div>';
    }
}
?>
        </td>
        <td><?php 
_e('Taxonomy to be used for filtering the grid.', 'wp-ultimate-post-grid');
?>
</td>
    </tr>
    <tr>
        <td><label for="wpupg_filter_match_parents"><?php