Last active
January 1, 2016 22:28
-
-
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.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* 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