install_plugins_(tab)
Fires after the plugins list table in each tab of the Install Plugins screen.
The dynamic portion of the hook name, $tab, allows for targeting individual tabs.
Possible hook names include:
- install_plugins_beta
- install_plugins_favorites
- install_plugins_featured
- install_plugins_plugin-information
- install_plugins_popular
- install_plugins_recommended
- install_plugins_search
- install_plugins_upload
Usage
add_action( 'install_plugins_(tab)', 'wp_kama_install_plugins_tab_action' ); /** * Function for `install_plugins_(tab)` action-hook. * * @param int $paged The current page number of the plugins list table. * * @return void */ function wp_kama_install_plugins_tab_action( $paged ){ // action... }
- $paged(int)
- The current page number of the plugins list table.
Changelog
Since 2.7.0 | Introduced. |
Where the hook is called
In file: /wp-admin/plugin-install.php
install_plugins_(tab)
wp-admin/plugin-install.php 200
do_action( "install_plugins_{$tab}", $paged );
Where the hook is used in WordPress
wp-admin/includes/admin-filters.php 100
add_action( 'install_plugins_featured', 'install_dashboard' );
wp-admin/includes/admin-filters.php 101
add_action( 'install_plugins_upload', 'install_plugins_upload' );
wp-admin/includes/admin-filters.php 102
add_action( 'install_plugins_search', 'display_plugins_table' );
wp-admin/includes/admin-filters.php 103
add_action( 'install_plugins_popular', 'display_plugins_table' );
wp-admin/includes/admin-filters.php 104
add_action( 'install_plugins_recommended', 'display_plugins_table' );
wp-admin/includes/admin-filters.php 105
add_action( 'install_plugins_new', 'display_plugins_table' );
wp-admin/includes/admin-filters.php 106
add_action( 'install_plugins_beta', 'display_plugins_table' );
wp-admin/includes/admin-filters.php 107
add_action( 'install_plugins_favorites', 'display_plugins_table' );
wp-admin/includes/admin-filters.php 108
add_action( 'install_plugins_pre_plugin-information', 'install_plugin_information' );
wp-admin/includes/class-wp-plugin-install-list-table.php 209
add_action( 'install_plugins_favorites', 'install_plugins_favorites_form', 9, 0 );