install_themes_upload
Fires at the top of each of the tabs on the Install Themes page.
Это один из вариантов динамического хука install_themes_(tab)
Использование
add_action( 'install_themes_upload', 'wp_kama_install_themes_upload_action' ); /** * Function for `install_themes_upload` action-hook. * * @param int $paged Number of the current page of results being viewed. * * @return void */ function wp_kama_install_themes_upload_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_upload
wp-admin/theme-install.php 310
do_action( "install_themes_{$tab}", $paged );