ID,'thumbnail').'" width="80" height="auto"/>'; break; case 'apg_image_count': $count = apg_get_photo_count($post->ID); echo $count; break; case 'apg_album_shortcode': echo '[apg_album id="'.get_the_id().'"]'; break; } } function add_custom_columns($columns) { $columns = array( 'date' => 'Created on', 'apg_cover' => 'Cover image', 'title' => 'Album title', 'apg_image_count' => 'Images', 'apg_album_shortcode' => 'Shortcode', ); return $columns; } function apg_change_title_placeholder( $title ){ $screen = get_current_screen(); if ( 'apg' == $screen->post_type ) { $title = 'Album title'; } return $title; } } // end class }