install_themes_(tab) хук-событиеWP 2.8.0

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:

Использование

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 Введена.

Где вызывается хук

В файле: /wp-admin/theme-install.php
install_themes_(tab)
wp-admin/theme-install.php 277
do_action( "install_themes_{$tab}", $paged );

Где используется хук в WordPress

wp-admin/includes/admin-filters.php 116
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 );