Title: WP_MS_Themes_List_Table::get_columns
Published: April 25, 2014
Last modified: May 20, 2026

---

# WP_MS_Themes_List_Table::get_columns(): array<string,

## In this article

 * [Return](https://developer.wordpress.org/reference/classes/wp_ms_themes_list_table/get_columns/?output_format=md#return)
 * [Source](https://developer.wordpress.org/reference/classes/wp_ms_themes_list_table/get_columns/?output_format=md#source)
 * [Related](https://developer.wordpress.org/reference/classes/wp_ms_themes_list_table/get_columns/?output_format=md#related)

[ Back to top](https://developer.wordpress.org/reference/classes/wp_ms_themes_list_table/get_columns/?output_format=md#wp--skip-link--target)

Gets the list of columns for the list table.

## 󠀁[Return](https://developer.wordpress.org/reference/classes/wp_ms_themes_list_table/get_columns/?output_format=md#return)󠁿

 array<string, string> Array of column titles keyed by their column name.

## 󠀁[Source](https://developer.wordpress.org/reference/classes/wp_ms_themes_list_table/get_columns/?output_format=md#source)󠁿

    ```php
    public function get_columns() {
    	$columns = array(
    		'cb'          => '<input type="checkbox" />',
    		'name'        => __( 'Theme' ),
    		'description' => __( 'Description' ),
    	);

    	if ( $this->show_autoupdates ) {
    		$columns['auto-updates'] = __( 'Automatic Updates' );
    	}

    	return $columns;
    }
    ```

[View all references](https://developer.wordpress.org/reference/files/wp-admin/includes/class-wp-ms-themes-list-table.php/)
[View on Trac](https://core.trac.wordpress.org/browser/tags/7.0/src/wp-admin/includes/class-wp-ms-themes-list-table.php#L337)
[View on GitHub](https://github.com/WordPress/wordpress-develop/blob/7.0/src/wp-admin/includes/class-wp-ms-themes-list-table.php#L337-L349)

## 󠀁[Related](https://developer.wordpress.org/reference/classes/wp_ms_themes_list_table/get_columns/?output_format=md#related)󠁿

| Uses | Description | 
| [__()](https://developer.wordpress.org/reference/functions/__/)`wp-includes/l10n.php` |

Retrieves the translation of $text.

  |

## User Contributed Notes

You must [log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fdeveloper.wordpress.org%2Freference%2Fclasses%2Fwp_ms_themes_list_table%2Fget_columns%2F)
before being able to contribute a note or feedback.