WordPress at a glance
action is not described

activate_plugin action-hook . WP 2.9.0

Fires before a plugin is activated.

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


add_action( 'activate_plugin', 'action_function_name_5027', 10, 2 );
function action_function_name_5027( $plugin, $network_wide ){
	// action...
Path to the main plugin file from plugins directory.
Whether to enable the plugin for all sites in the network or just the current site. Multisite only.
Default: false

Where the hook is called

wp-admin/includes/plugin.php 583
do_action( 'activate_plugin', $plugin, $network_wide );

Where the hook is used (in WP core)

Does not used.