Make WordPress Core

Opened 20 years ago

Closed 20 years ago

Last modified 16 years ago

#1752 closed enhancement (duplicate)

Hook for plugin activation/initial setup

Reported by: error's profile error Owned by:
Milestone: Priority: normal
Severity: normal Version: 1.2
Component: General Keywords: hook plugin
Focuses: 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 (1)

#1 @error
20 years ago

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

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

Note: See TracTickets for help on using tickets.