WordPress.org

Make WordPress Core

Opened 8 years ago

Closed 8 years ago

Last modified 4 years ago

#1752 closed enhancement (duplicate)

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 (1)

comment:1 error8 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.