WP_MS_Themes_List_Table::get_columns(): array<string,
- Source
wp-admin/includes/class-wp-ms-themes-list-table.php:337
Gets the list of columns for the list table.
Return
array<string,- string> Array of column titles keyed by their column name.
Uses · 1
- __()Retrieves the translation of $text.
Source
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; }History
One change between 6.7.7 and 7.1.0.
Signature, return type and hooks compared across 5 parsed releases.
7.0.4
Return type changed from
string[] to array<string,.verified against sourceAbout this page
- Parsed data
- Generated from the wordpress-develop 7.0.4 tag, from
src/wp-admin/includes/class-wp-ms-themes-list-table.php, and regenerated for each WordPress release so it tracks the code rather than a snapshot of it. - Corrections
- Something wrong on this page? Report it and it gets fixed in the next regeneration.