Filters the tabs shown on the Add Themes screen.
$tabsstring[]wp-admin/includes/class-wp-theme-install-list-table.php:72WP_Theme_Install_List_Table::prepare_items()wp-admin/theme-install.php:179file scope * This filter is for backward compatibility only, for the suppression of the upload tab. * * @since 2.8.0 * * @param string[] $tabs Associative array of the tabs shown on the Add Themes screen. Default is 'upload'. */ $tabs = apply_filters( 'install_themes_tabs', array( 'upload' => __( 'Upload Theme' ) ) ); if ( ! empty( $tabs['upload'] ) && current_user_can( 'upload_themes' ) ) { echo ' <button type="button" class="upload-view-toggle page-title-action hide-if-no-js" aria-expanded="false">' . __( 'Upload Theme' ) . '</button>'; } ?> <hr class="wp-header-end">Introduced in 2.8.0. Unchanged from 6.7.7 through 7.1.0.
Signature, return type and hooks compared across 5 parsed releases.