Skip to content

Instantly share code, notes, and snippets.

@lucas-pelton
Last active January 1, 2016 22:28
Show Gist options
  • Save lucas-pelton/8209895 to your computer and use it in GitHub Desktop.
Save lucas-pelton/8209895 to your computer and use it in GitHub Desktop.
Small change to Wordpress plugin Categories Images.Use thumbnails, rather than full-size images, on category listing page in WP admin.
/**
* Thumbnail column value added to category admin.
*
* @access public
* @param mixed $columns
* @param mixed $column
* @param mixed $id
* @return void
*/
function z_taxonomy_column( $columns, $column, $id ) {
if ( $column == 'thumb' )
$columns = '<span><img src="' . z_taxonomy_image_url($id, 'thumbnail', TRUE) . '" alt="' . __('Thumbnail', 'zci') . '" class="wp-post-image" /></span>';
return $columns;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment