WordPress at a glance
action is not described

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'.


add_action( 'install_plugins_pre_(tab)', 'action_function_name_9618' );
function action_function_name_9618(){
	// action...

Список изменений

С версии 2.7.0 Введена.

Где вызывается хук

В файле: /wp-admin/plugin-install.php
wp-admin/plugin-install.php 70
do_action( "install_plugins_pre_{$tab}" );

Где используется хук в ядре WP

wp-admin/includes/admin-filters.php 90
add_action( 'install_plugins_pre_plugin-information', 'install_plugin_information' );