do_action( "install_themes_pre_{$tab}" )
- Since
- 2.8.0, 6.1.0
Fires before each of the tabs are rendered on the Install Themes page.
Description
The dynamic portion of the hook name, $tab, refers to the current theme installation tab.
Possible hook names include:
install_themes_pre_block-themesinstall_themes_pre_dashboardinstall_themes_pre_featuredinstall_themes_pre_newinstall_themes_pre_searchinstall_themes_pre_updatedinstall_themes_pre_upload
Compatibility
- WordPress
- since 6.1.0
- 6.7.7
- 6.8.8
- 6.9.7
- 7.0.4
- 7.1.0
Present in every tracked release (6.7.7 to 7.1.0).
Where this hook fires · 1
wp-admin/theme-install.php:103file scope
Source code
* - `install_themes_pre_updated` * - `install_themes_pre_upload` * * @since 2.8.0 * @since 6.1.0 Added the `install_themes_pre_block-themes` hook name. */ do_action( "install_themes_pre_{$tab}" );} $help_overview = '<p>' . sprintf( /* translators: %s: Theme Directory URL. */ __( 'You can find additional themes for your site by using the Theme Browser/Installer on this screen, which will display themes from the <a href="%s">WordPress Theme Directory</a>. These themes are designed and developed by third parties, are available free of charge, and are compatible with the license WordPress uses.' ),Changelog
Introduced in 2.8.0. Unchanged from 6.7.7 through 7.1.0.
Signature, return type and hooks compared across 5 parsed releases.
6.1.0
Added the
install_themes_pre_block-themes hook name.from the docblock2.8.0
Introduced.from the docblock
About this page
- Parsed data
- Generated from the wordpress-develop 7.0.4 tag, and regenerated for each WordPress release so it tracks the code rather than a snapshot of it.
- Corrections
- Something wrong on this page? Report it and it gets fixed in the next regeneration.