W3cubDocs

/WordPress

WP_MS_Themes_List_Table::get_columns(): string[]

Return

string[] Array of column titles keyed by their column name.

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;
}

© 2003–2024 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/classes/wp_ms_themes_list_table/get_columns