WordPress at Your Fingertips
function is not described

WP_Plugins_List_Table::get_columns() public WP 1.0

{} It's a method of the class: WP_Plugins_List_Table{}

No Hooks.

Return

Array.

Usage

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

Notes

  • Global. String. $status

Code of WP_Plugins_List_Table::get_columns() WP 5.8.2

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 ) {
		$columns['auto-updates'] = __( 'Automatic Updates' );
	}

	return $columns;
}