Make WordPress Core

Opened 18 years ago

Closed 18 years ago

Last modified 7 weeks ago

#2916 closed enhancement (wontfix)

More enhancement to plugin system

Reported by: pcdinh's profile pcdinh Owned by:
Milestone: Priority: normal
Severity: normal Version: 2.1
Component: Optimization Keywords: plugin activation
Focuses: Cc:

Description

The current plugin system is really good. However, I think that it would be better if we can extend it to require each plugin to define:

1.beforeActivationAction(): do something before activate a plugin, such as altering a table, copying or moving some files...
2.afterDeactivationAction(): return the original status of the system.

Do you think that would be neccessary?

Regards,

Dinh

Change History (2)

#1 @masquerade
18 years ago

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

See: register_activation_hook(), register_deactivation_hook(). They are not required, and should never be, a simple plugin shouldn't have to feature bloat, but they are there for those who need them.

#2 @Nazgul
17 years ago

  • Milestone 2.1 deleted
Note: See TracTickets for help on using tickets.