WP_Plugins_List_Table::get_columns(): string[]
Contents
Return
string[] Array of column titles keyed by their column name.
Source
File: wp-admin/includes/class-wp-plugins-list-table.php
.
View all references
public function get_columns() {
global $status;
$columns = array(
'cb' => ! in_array( $status, array( 'mustuse', 'dropins' ), true ) ? '<input type="checkbox" />' : '',
'name' => __( 'Plugin' ),
'description' => __( 'Description' ),
);
if ( $this->show_autoupdates && ! in_array( $status, array( 'mustuse', 'dropins' ), true ) ) {
$columns['auto-updates'] = __( 'Automatic Updates' );
}
return $columns;
}