function mts_columns_content($column_name, $post_ID) { if ($column_name == 'featured_image') { $post_featured_image = mts_get_featured_image($post_ID); if ($post_featured_image) { echo '<img width="150" height="100" src="' . $post_featured_image . '" />'; } } elseif ($column_name == 'is_featured_post') { if (get_post_meta($post_ID, 'mts_featured', true)) { echo '<div class="dashicons dashicons-star-filled" title="' . __('Featured Post') . '"></div>'; } else { echo '<div class="dashicons dashicons-star-empty" title="' . __('Not a Featured Post') . '"></div>'; } } }
function mts_columns_content($column_name, $post_ID) { if ($column_name == 'featured_image') { $post_featured_image = mts_get_featured_image($post_ID); if ($post_featured_image) { echo '<img width="150" height="100" src="' . $post_featured_image . '" />'; } } }