WordPress at Your Fingertips
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.


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


Since 2.0.0 Introduced.

Where the hook is called

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

Where in WP core the hook is used WordPress

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