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
Использование
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.
Список изменений
С версии 2.8.0 | Введена. |
С версии 6.1.0 | Added the install_themes_block-themes hook name. |
Где вызывается хук
В файле: /wp-admin/theme-install.php
install_themes_(tab)
wp-admin/theme-install.php 306
do_action( "install_themes_{$tab}", $paged );
Где используется хук в WordPress
wp-admin/includes/admin-filters.php 117
add_action( 'install_themes_pre_theme-information', 'install_theme_information' );
wp-admin/includes/class-wp-theme-install-list-table.php 115
add_action( 'install_themes_table_header', 'install_theme_search_form', 10, 0 );