install_plugins_pre_upload
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_upload', 'wp_kama_install_plugins_pre_upload_action' ); /** * Function for `install_plugins_pre_upload` action-hook. * * @return void */ function wp_kama_install_plugins_pre_upload_action(){ // action... }
Changelog
Since 2.7.0 | Introduced. |
Where the hook is called
In file: /wp-admin/plugin-install.php
install_plugins_pre_upload
wp-admin/plugin-install.php 82
do_action( "install_plugins_pre_{$tab}" );
wp-admin/plugin-install.php 90
do_action( 'install_plugins_pre_upload' );