WP_Theme_Install_List_Table::get_views() WordPress Method
The WP_Theme_Install_List_Table::get_views() method is used to get the list of views for the installed themes page. This method takes no parameters and returns an array of views. The array keys are the view names and the values are the view counts.
WP_Theme_Install_List_Table::get_views() #
Return
(array)
Source
File: wp-admin/includes/class-wp-theme-install-list-table.php
protected function get_views() { global $tabs, $tab; $display_tabs = array(); foreach ( (array) $tabs as $action => $text ) { $current_link_attributes = ( $action === $tab ) ? ' class="current" aria-current="page"' : ''; $href = self_admin_url( 'theme-install.php?tab=' . $action ); $display_tabs[ 'theme-install-' . $action ] = "<a href='$href'$current_link_attributes>$text</a>"; } return $display_tabs; }
Expand full source codeCollapse full source codeView on TracView on GitHub