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

Fires before each of the tabs are rendered 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_pre_(tab)', 'wp_kama_install_themes_pre_tab_action' );

/**
 * Function for `install_themes_pre_(tab)` action-hook.
 * 
 * @return void
 */
function wp_kama_install_themes_pre_tab_action(){

	// action...
}

Список изменений

С версии 2.8.0 Введена.

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

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

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

wp-admin/includes/admin-filters.php 116
add_action( 'install_themes_pre_theme-information', 'install_theme_information' );