install_plugins_pre_(tab)
Fires before each tab on the Install Plugins screen is loaded.
The dynamic portion of the hook name, $tab, allows for targeting individual tabs.
Possible hook names include:
- install_plugins_pre_beta
- install_plugins_pre_favorites
- install_plugins_pre_featured
- install_plugins_pre_plugin-information
- install_plugins_pre_popular
- install_plugins_pre_recommended
- install_plugins_pre_search
- install_plugins_pre_upload
Usage
add_action( 'install_plugins_pre_(tab)', 'wp_kama_install_plugins_pre_tab_action' ); /** * Function for `install_plugins_pre_(tab)` action-hook. * * @return void */ function wp_kama_install_plugins_pre_tab_action(){ // action... }
Changelog
Since 2.7.0 | Introduced. |
Where the hook is called
In file: /wp-admin/plugin-install.php
install_plugins_pre_(tab)
wp-admin/plugin-install.php 82
do_action( "install_plugins_pre_{$tab}" );
Where the hook is used in WordPress
wp-admin/includes/admin-filters.php 108
add_action( 'install_plugins_pre_plugin-information', 'install_plugin_information' );