install_themes_tabs filter-hook . WP 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', 'filter_function_name_1013' ); function filter_function_name_1013( $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
wp-admin/theme-install.php 152
$tabs = apply_filters( 'install_themes_tabs', array( 'upload' => __( 'Upload Theme' ) ) );
wp-admin/includes/class-wp-theme-install-list-table.php 72
$tabs = apply_filters( 'install_themes_tabs', $tabs );