WP_List_Table::get_columns()

Gets a list of columns.


Description Description

The format is:

  • 'internal-name' => 'Title'

Top ↑

Return Return

(array)


Top ↑

More Information More Information

This method should be overridden to return an associative array of columns. The associative array should follow the format 'slug' => array( 'Title', true ). Typically, you will use this in the prepare_items() method to build part of the _column_headers property.


Top ↑

Source Source

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

	public function get_columns() {
		die( 'function WP_List_Table::get_columns() must be overridden in a subclass.' );
	}


Top ↑

Changelog Changelog

Changelog
Version Description
3.1.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.