/**
  * Define our custom columns shown in admin.
  * @param  string $column
  */
 public function custom_columns($column, $post_id)
 {
     switch ($column) {
         case 'sp_icon':
             echo has_post_thumbnail($post_id) ? edit_post_link(get_the_post_thumbnail($post_id, 'prosports-fit-mini'), '', '', $post_id) : '';
             break;
         case 'sp_url':
             echo sp_get_url($post_id);
             break;
         case 'sp_impressions':
             echo sp_get_post_impressions($post_id);
             break;
         case 'sp_clicks':
             echo sp_get_post_clicks($post_id);
             break;
     }
 }
 /**
  * Define our custom columns shown in admin.
  * @param  string $column
  */
 public function custom_columns($column, $post_id)
 {
     switch ($column) {
         case 'sp_icon':
             echo has_post_thumbnail($post_id) ? edit_post_link(get_the_post_thumbnail($post_id, 'prosports-fit-mini'), '', '', $post_id) : '';
             break;
         case 'sp_url':
             echo sp_get_url($post_id);
             break;
         case 'sp_abbreviation':
             $abbreviation = get_post_meta($post_id, 'sp_abbreviation', true);
             echo $abbreviation ? $abbreviation : '—';
             break;
         case 'sp_league':
             echo get_the_terms($post_id, 'sp_league') ? the_terms($post_id, 'sp_league') : '—';
             break;
         case 'sp_season':
             echo get_the_terms($post_id, 'sp_season') ? the_terms($post_id, 'sp_season') : '—';
             break;
     }
 }