install_themes_tabs filter-hookWP 2.8.0

Filters the tabs shown on the Add Themes screen.

This filter is for backward compatibility only, for the suppression of the upload tab.

Usage

add_filter( 'install_themes_tabs', 'wp_kama_install_themes_tabs_filter' );

/**
 * Function for `install_themes_tabs` filter-hook.
 * 
 * @param string[] $tabs Associative array of the tabs shown on the Add Themes screen.
 *
 * @return string[]
 */
function wp_kama_install_themes_tabs_filter( $tabs ){

	// filter...
	return $tabs;
}
$tabs(string[])
Associative array of the tabs shown on the Add Themes screen.
Default: 'upload'

Changelog

Since 2.8.0 Introduced.

Where the hook is called

In file: /wp-admin/theme-install.php
install_themes_tabs
wp-admin/theme-install.php 178
$tabs = apply_filters( 'install_themes_tabs', array( 'upload' => __( 'Upload Theme' ) ) );
wp-admin/includes/class-wp-theme-install-list-table.php 71
$tabs = apply_filters( 'install_themes_tabs', $tabs );

Where the hook is used in WordPress

Usage not found.