WP_Plugins_List_Table::get_columns()publicWP 1.0

Method of the class: WP_Plugins_List_Table{}

No Hooks.

Return

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

Usage

$WP_Plugins_List_Table = new WP_Plugins_List_Table();
$WP_Plugins_List_Table->get_columns();

Notes

  • Global. String. $status

WP_Plugins_List_Table::get_columns() code WP 6.5.4

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