do_action( "install_plugins_pre_{$tab}" )
- Since
- 2.7.0
Fires before each tab on the Install Plugins screen is loaded.
Description
The dynamic portion of the hook name, $tab, allows for targeting individual tabs.
Possible hook names include:
install_plugins_pre_betainstall_plugins_pre_favoritesinstall_plugins_pre_featuredinstall_plugins_pre_plugin-informationinstall_plugins_pre_popularinstall_plugins_pre_recommendedinstall_plugins_pre_searchinstall_plugins_pre_upload
Compatibility
- WordPress
- since 2.7.0
- 6.7.7
- 6.8.8
- 6.9.7
- 7.0.4
- 7.1.0
Present in every tracked release (6.7.7 to 7.1.0).
Where this hook fires · 1
wp-admin/plugin-install.php:82file scope
Source code
* - `install_plugins_pre_recommended` * - `install_plugins_pre_search` * - `install_plugins_pre_upload` * * @since 2.7.0 */do_action( "install_plugins_pre_{$tab}" ); /* * Call the pre upload action on every non-upload plugin installation screen * because the form is always displayed on these screens. */if ( 'upload' !== $tab ) {Changelog
Introduced in 2.7.0. Unchanged from 6.7.7 through 7.1.0.
Signature, return type and hooks compared across 5 parsed releases.
About this page
- Parsed data
- Generated from the wordpress-develop 6.7.7 tag, and regenerated for each WordPress release so it tracks the code rather than a snapshot of it.
- Corrections
- Something wrong on this page? Report it and it gets fixed in the next regeneration.