install_plugins_pre_(tab) action-hook . WP 2.7.0
Fires before each tab on the Install Plugins screen is loaded.
The dynamic portion of the action hook, $tab, allows for targeting individual tabs, for instance 'install_plugins_pre_plugin-information'.
Usage
add_action( 'install_plugins_pre_(tab)', 'action_function_name_1061' ); function action_function_name_1061(){ // action... }
Changelog
Since 2.7.0 | Introduced. |
Where the hook is called
In file: /wp-admin/plugin-install.php
wp-admin/plugin-install.php 70
do_action( "install_plugins_pre_{$tab}" );
Where in WP core the hook is used WordPress
wp-admin/plugin-install.php 90
add_action( 'install_plugins_pre_plugin-information', 'install_plugin_information' );