Forums
-
- Forum
- Posts
-
- Installing BuddyPress
- 23,840
- How-to & Troubleshooting
- 129,871
- Creating & Extending
- 25,907
- Requests & Feedback
- 9,550
- Third Party Plugins
- 9,832
- Showcase
- 3,316
- Ideas
- 1,402
- Miscellaneous
- 9,179
-
You need activated_plugin. It fires after a plugin has been activated but note that if a plugin is silently activated (such as during an update), the hook doesn’t fire.
Here’s an example:
add_action( 'activated_plugin', function( $plugin, $network_wide ) {
// $plugin is a string (the path to main plugin file).
}, 10, 2 );