install_plugins_pre_plugin-information
Fires before each tab on the Install Plugins screen is loaded.
This is one of the variants of the dynamic hook install_plugins_pre_(tab)
Usage
add_action( 'install_plugins_pre_plugin-information', 'wp_kama_install_plugins_pre_plugin_information_action' ); /** * Function for `install_plugins_pre_plugin-information` action-hook. * * @return void */ function wp_kama_install_plugins_pre_plugin_information_action(){ // action... }
Changelog
Since 2.7.0 | Introduced. |
Where the hook is called
In file: /wp-admin/plugin-install.php
install_plugins_pre_plugin-information
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' );