Title: install_themes_pre_{$tab}
Published: April 25, 2014
Last modified: May 20, 2026

---

# do_action( “install_themes_pre_{$tab}” )

## In this article

 * [Description](https://developer.wordpress.org/reference/hooks/install_themes_pre_tab/?output_format=md#description)
 * [Source](https://developer.wordpress.org/reference/hooks/install_themes_pre_tab/?output_format=md#source)
 * [Changelog](https://developer.wordpress.org/reference/hooks/install_themes_pre_tab/?output_format=md#changelog)

[ Back to top](https://developer.wordpress.org/reference/hooks/install_themes_pre_tab/?output_format=md#wp--skip-link--target)

Fires before each of the tabs are rendered on the Install Themes page.

## 󠀁[Description](https://developer.wordpress.org/reference/hooks/install_themes_pre_tab/?output_format=md#description)󠁿

The dynamic portion of the hook name, `$tab`, refers to the current theme installation
tab.

Possible hook names include:

 * `install_themes_pre_block-themes`
 * `install_themes_pre_dashboard`
 * `install_themes_pre_featured`
 * `install_themes_pre_new`
 * `install_themes_pre_search`
 * `install_themes_pre_updated`
 * `install_themes_pre_upload`

## 󠀁[Source](https://developer.wordpress.org/reference/hooks/install_themes_pre_tab/?output_format=md#source)󠁿

    ```php
    do_action( "install_themes_pre_{$tab}" );
    ```

[View all references](https://developer.wordpress.org/reference/files/wp-admin/theme-install.php/)
[View on Trac](https://core.trac.wordpress.org/browser/tags/7.0/src/wp-admin/theme-install.php#L103)
[View on GitHub](https://github.com/WordPress/wordpress-develop/blob/7.0/src/wp-admin/theme-install.php#L103-L103)

## 󠀁[Changelog](https://developer.wordpress.org/reference/hooks/install_themes_pre_tab/?output_format=md#changelog)󠁿

| Version | Description | 
| [6.1.0](https://developer.wordpress.org/reference/since/6.1.0/) | Added the `install_themes_pre_block-themes` hook name. | 
| [2.8.0](https://developer.wordpress.org/reference/since/2.8.0/) | Introduced. |

## User Contributed Notes

You must [log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fdeveloper.wordpress.org%2Freference%2Fhooks%2Finstall_themes_pre_tab%2F)
before being able to contribute a note or feedback.