install_themes_pre_block-themes
Fires before each of the tabs are rendered on the Install Themes page.
This is one of the variants of the dynamic hook install_themes_pre_(tab)
Usage
add_action( 'install_themes_pre_block-themes', 'wp_kama_install_themes_pre_block_action' );
/**
* Function for `install_themes_pre_block-themes` action-hook.
*
* @return void
*/
function wp_kama_install_themes_pre_block_action(){
// action...
}Changelog
| Since 2.8.0 | Introduced. |
| Since 6.1.0 | Added the install_themes_pre_block-themes hook name. |
Where the hook is called
In file: /wp-admin/theme-install.php
install_themes_pre_block-themes
wp-admin/theme-install.php 103
do_action( "install_themes_pre_{$tab}" );