WP_List_Table::get_views() WordPress Method

The WP_List_Table::get_views() method allows you to get the current views for a list table. This is useful for displaying a view switcher for different ways of viewing the data in the table.

WP_List_Table::get_views() #

Gets the list of views available on this table.


Description

The format is an associative array:

  • 'id' => 'link'

Top ↑

Return

(array)


Top ↑

More Information

This method returns an associative array listing all the views that can be used with this table.


Top ↑

Source

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

	protected function get_views() {
		return array();
	}


Top ↑

Changelog

Changelog
VersionDescription
3.1.0Introduced.

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.