WP_Plugins_List_Table::get_columns() WordPress Method

The WP_Plugins_List_Table::get_columns() method is used to get the list of columns for the plugins list table.

WP_Plugins_List_Table::get_columns() #


Return

(array)


Top ↑

Source

File: wp-admin/includes/class-wp-plugins-list-table.php

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

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by theĀ Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.