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'
Return
(array)
More Information
This method returns an associative array listing all the views that can be used with this table.
Source
File: wp-admin/includes/class-wp-list-table.php
protected function get_views() { return array(); }
Expand full source codeCollapse full source codeView on TracView on GitHub
Changelog
Version | Description |
---|---|
3.1.0 | Introduced. |