install_themes_(tab)
Fires at the top of each of the tabs on the Install Themes page.
The dynamic portion of the hook name, $tab, refers to the current theme installation tab.
Possible hook names include:
- install_themes_block-themes
- install_themes_dashboard
- install_themes_featured
- install_themes_new
- install_themes_search
- install_themes_updated
- install_themes_upload
Usage
add_action( 'install_themes_(tab)', 'wp_kama_install_themes_tab_action' ); /** * Function for `install_themes_(tab)` action-hook. * * @param int $paged Number of the current page of results being viewed. * * @return void */ function wp_kama_install_themes_tab_action( $paged ){ // action... }
- $paged(int)
- Number of the current page of results being viewed.
Changelog
Since 2.8.0 | Introduced. |
Since 6.1.0 | Added the install_themes_block-themes hook name. |
Where the hook is called
In file: /wp-admin/theme-install.php
install_themes_(tab)
wp-admin/theme-install.php 310
do_action( "install_themes_{$tab}", $paged );
Where the hook is used in WordPress
wp-admin/includes/admin-filters.php 118
add_action( 'install_themes_pre_theme-information', 'install_theme_information' );
wp-admin/includes/class-wp-theme-install-list-table.php 116
add_action( 'install_themes_table_header', 'install_theme_search_form', 10, 0 );