WP_Plugin_Install_List_Table::get_views() –

You appear to be a bot. Output may be restricted

Description

Usage

$array = WP_Plugin_Install_List_Table::get_views();

Parameters

Returns

array

Source

File name: wordpress/wp-admin/includes/class-wp-plugin-install-list-table.php
Lines:

1 to 14 of 14
  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( 'plugin-install.php?tab=' . $action );
      $display_tabs[ 'plugin-install-' . $action ] = "<a href='$href'$current_link_attributes>$text</a>";
    }
    // No longer a real tab.
    unset( $display_tabs['plugin-install-upload'] );

    return $display_tabs;
  }
 

 View on GitHub View on Trac