1 | <?php |
||
13 | class Thumbnail { |
||
14 | /** |
||
15 | * Thumbnail constructor. |
||
16 | */ |
||
17 | public function __construct() { |
||
24 | |||
25 | /** |
||
26 | * Adds a new column header for displaying the thumbnail of a post. |
||
27 | * |
||
28 | * @param array $columns An array of column names. |
||
29 | * @return array An array of column names. |
||
30 | */ |
||
31 | public function add_posts_column_header( $columns ) { |
||
42 | |||
43 | /** |
||
44 | * Displays the thumbnail content. |
||
45 | * |
||
46 | * @param string $column The name of the column to display. |
||
47 | * @param int $post_id The current post ID. |
||
48 | */ |
||
49 | public function display_posts_column_content( $column, $post_id ) { |
||
56 | |||
57 | /** |
||
58 | * Load CSS needed for the thumbnail column. |
||
59 | */ |
||
60 | public function load_columns_css() { |
||
69 | } |
||
70 |