Ticket #1752 (closed enhancement: duplicate)

Opened 6 years ago

Last modified 2 years ago

Hook for plugin activation/initial setup

Reported by: error Owned by: anonymous
Priority: normal Milestone:
Component: General Version: 1.2
Severity: normal Keywords: hook plugin
Cc:

Description

I propose a hook for activating a plugin. The hook would be called whenever a plugin is activated, with the name (or possibly filename) of the plugin as its argument. A plugin could then know it has just been activated, and take any initial setup steps it needs to take to configure itself without user intervention, or possibly to redirect the user to the plugin's options if necessary. (Spam Karma 2 needs this, for instance.)

Change History

  • Status changed from new to closed
  • Resolution set to duplicate

hm, this code's already in wp-admin/plugins.php. sorry!

Note: See TracTickets for help on using tickets.