Uses
| Uses | Description |
|---|---|
| wp-includes/link-template.php: self_admin_url() | Retrieves the URL to the admin area for either the current site or the network depending on context. |
(array)
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;
}
© 2003–2019 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/classes/wp_theme_install_list_table/get_views