.column-thumb{width:80px;}'; $columns = array_reverse( $columns, true ); $columns['thumb'] = '
'; $columns = array_reverse( $columns, true ); return $columns; } /** * * @param $column * @param $post_id */ function add_thumb_column( $column, $post_id ) { switch ( $column ) { case 'thumb': if ( $thumb = get_the_post_thumbnail( $post_id, array( 80, 80 ) ) ) { $user_can_edit = current_user_can( 'edit_post', $post_id ); $is_trash = isset( $_REQUEST['status'] ) && 'trash' == $_REQUEST['status']; if ( ! $is_trash || $user_can_edit ) { $thumb = sprintf( '%s', get_edit_post_link( $post_id, true ), esc_attr( sprintf( __( 'Edit “%s”', 'default' ), _draft_or_post_title() ) ), $thumb ); } echo $thumb; } break; default: break; } } }