WordPress at a glance
action is not described

activate_(plugin) action-hook . WP 2.0.0

Fires as a specific plugin is being activated.

This hook is the "activation" hook used internally by register_activation_hook(). The dynamic portion of the hook name, $plugin, refers to the plugin basename.

If a plugin is silently activated (such as during an update), this hook does not fire.

Usage

add_action( 'activate_(plugin)', 'action_function_name_281' );
function action_function_name_281( $network_wide ){
	// action...
}
$network_wide(true/false)
Whether to enable the plugin for all sites in the network or just the current site. Multisite only.
Default: false

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

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

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

activate_plugin()
activate_(plugin)
wp-admin/includes/plugin.php 699
do_action( "activate_{$plugin}", $network_wide );
wp-admin/plugins.php 193
do_action( "activate_{$plugin}" );

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

wp-includes/default-filters.php 552
add_action( 'activate_header', '_wp_admin_bar_init' );