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